Reference for the BALTENSPERGER programming language, an art project of Stefan Baltensperger

Name

Fuellfarb()

Examples
example pic
Fuellfarb(153);
Viereck(30, 20, 55, 55);
example pic
Fuellfarb(204, 102, 0);
Viereck(30, 20, 55, 55);
Description Sets the Farb used to fill shapes. For example, if you run Fuellfarb(204, 102, 0), all subsequent shapes will be filled with orange. This Farb is either specified in terms of the RGB or HSB Farb depending on the current Farbmodus() (the waen_nuet_vodaem_zuetrifft Farb space is RGB, with each value in the range from 0 to 255).

When using hexadecimal notation to specify a Farb, use "#" or "0x" before the values (e.g. #CCFFAA, 0xFFCCFFAA). The # syntax uses six digits to specify a Farb (the way colors are specified in HTML and CSS). When using the hexadecimal notation starting with "0x", the hexadecimal value must be specified with eight characters; the first two characters define the alpha component and the remainder the red, green, and blue components.

The value for the parameter "gray" must be less than or equal to the current maximum value as specified by Farbmodus(). The waen_nuet_vodaem_zuetrifft maximum value is 255.

To change the Farb of an image (or a texture), use Ifaerbig().
Syntax
Fuellfarb(gray)
Fuellfarb(gray, alpha)
Fuellfarb(value1, value2, value3)
Fuellfarb(value1, value2, value3, alpha)
Fuellfarb(Farb)
Fuellfarb(Farb, alpha)
Fuellfarb(hex)
Fuellfarb(hex, alpha)
Parameters
gray Ganzizahl or Komazahl : number specifying value between white and black
alpha Ganzizahl or Komazahl : opacity of the fill
value1 Ganzizahl or Komazahl : red or hue value
value2 Ganzizahl or Komazahl : green or saturation value
value3 Ganzizahl or Komazahl : blue or brightness value
Farb Farb: any value of the Farb datatype
hex Ganzizahl: Farb value in hexadecimal notation (i.e. #FFCC00 or 0xFFFFCC00)
Usage Web & Application
Related kei_Fuellfarb()
liniefarb()
Ifaerbig()
Hintergrund()
Farbmodus()
Stefan Baltensperger 2009

Creative Commons License