![]() |
|
Navigation |
Synopsis The color gray.
Function
Description Create gray colors in various shades:
Examples Setting gray values with an integer in the range [0,255]:
b1 = box(fillColor(gray(0))); b2 = box(fillColor(gray(125))); b3 = box(fillColor(gray(255))); render(hcat([b1, b2, b3], size(50)));gives: ![]() Setting gray values with an a percentage in the range [0.0, 1.0]: b1 = box(fillColor(gray(0.0))); b2 = box(fillColor(gray(0.5))); b3 = box(fillColor(gray(1.0))); render(hcat([b1, b2, b3], size(50)));gives: ![]() Setting transparency: b1 = box(fillColor(gray(0.5, 0.0))); b2 = box(fillColor(gray(0.5, 0.5))); b3 = box(fillColor(gray(0.5, 1.0))); render(hcat([b1, b2, b3], size(50)));gives: ![]() ![]() |