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

Name

liniefarb()

Examples
example pic
liniefarb(153);
Viereck(30, 20, 55, 55);
example pic
liniefarb(204, 102, 0);
Viereck(30, 20, 55, 55);
Description Sets the Farb used to draw lines and borders around shapes. 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.
Syntax
liniefarb(gray)
liniefarb(gray, alpha)
liniefarb(value1, value2, value3)
liniefarb(value1, value2, value3, alpha)
liniefarb(Farb)
liniefarb(Farb, alpha)
liniefarb(hex)
liniefarb(hex, alpha)
Parameters
gray Ganzizahl or Komazahl : specifies a value between white and black
alpha Ganzizahl or Komazahl : opacity of the stroke
value1 Ganzizahl or Komazahl : red or hue value (depending on the current Farb mode)
value2 Ganzizahl or Komazahl : green or saturation value (depending on the current Farb mode)
value3 Ganzizahl or Komazahl : blue or brightness value (depending on the current Farb mode)
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_Liniefarb()
Fuellfarb()
Ifaerbig()
Hintergrund()
Farbmodus()
Stefan Baltensperger 2009

Creative Commons License