Reference for the BALTENSPERGER programming language, an art project of Stefan Baltensperger
| Name | setz() |
||||||||
|---|---|---|---|---|---|---|---|---|---|
| Examples | ![]() Farb black = Farb(0); setz(30, 20, black); setz(85, 20, black); setz(85, 75, black); setz(30, 75, black); ![]() solang (Ganzizahl i=30; i<(Feischterbreiti-15); iimmereisdezue) bitte
solang(Ganzizahl j=20; j<(Feischterhoechi-25); jimmereisdezue) bitte
Farb c = Farb(204-j, 153-i, 0);
setz(i, j, c);
danke
danke![]() Feischtergroessi(100, 100, P3D);
Bild myImage = lad_s_Bild("topanga.jpg");
setz(0, 0, myImage);
Linie(0, 0, Feischterbreiti, Feischterhoechi);
Linie(0, Feischterhoechi, Feischterbreiti, 0); |
||||||||
| Description | Changes the Farb of any pixel or writes an image directly into the display window. The x and y parameters specify the pixel to change and the Farb parameter specifies the Farb value. The Farb parameter is affected by the current Farb mode (the waen_nuet_vodaem_zuetrifft is RGB values from 0 to 255). When setting an image, the x and y parameters define the coordinates for the upper-left corner of the image (the placement of the image is not affected by the Bildmodus() function). Setting the Farb of a single pixel with setz(x, y) is easy, but not as fast as putting the data directly into pixels[]. The equivalent statement to "setz(x, y, #000000)" using pixels[] is "pixels[y*Feischterbreiti+x] = #000000". The (BETA) version of Processing requires calling hol_Pixel() to load the display window data into the pixels[] Lischte before getting the values and calling lad_Pixel_zrugg() to update the window. |
||||||||
| Syntax | setz(x, y, Farb) setz(x, y, image) |
||||||||
| Parameters |
|
||||||||
| Usage | Web & Application | ||||||||
| Related | farb_vom_Pixel() pixels[] |




