Color

Format

color colorname
color ( colorname )
color red, blue, green
color ( red, blue, green )
color rgb_value
color ( rgb_value )

Description

Sets the current drawing color to colorname; to RGB color made up of red, blue, green components; or to RGB value.

There is a special color named CLEAR, with a value of -1. If the current color is set to this value the pixels or shapes drawn will clear the pixels of the graphics output area and make them transparent. This is especially useful when creating sprites using the Spriteslice command.

Color names and RGB values
Color NameRGB Values
black0, 0, 0        
white255, 255, 255        
red255, 0, 0        
darkred128, 0, 0        
green0, 255, 0        
darkgreen0, 128, 0        
blue0, 0, 255        
darkblue0, 0, 128        
cyan0, 255, 255        
darkcyan0, 128, 128        
purple255, 0, 255        
darkpurple128, 0, 128        
yellow255, 255, 0        
darkyellow128, 128 ,0        
orange255, 102, 0        
darkorange176, 61 ,0        
grey164, 164 ,164        
darkgrey128, 128 ,128        
clear-1 

See Also

Example

clg
color rgb(128,128,128)
rect 0,0,graphwidth, graphheight
color red
circle 100,100,50
color 255,160,160
circle 100,100,25

Will draw a grey rectangle with a red circle with a pink middle.
Color

New To Version

0.9.5m

 
en/color.txt · Last modified: 2010/07/15 16:00 by admin
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki