===== Color =====
==== Formato ====
**color** //NombredelColor//\\
**color** ( //NombredelColor// )\\
**color** //valor_rgb//\\
**color** ( //valor_rgb// )\\
==== Descripción ====
Establece como color de dibujo actual el //NombredelColor//, el color RGB - compuesto por la combinación //rojo//, //azul//, //verde//- , o el valor RGB.\\
Hay un color especial denominado CLEAR, cuyo valor es -1. Si se establece como color actual, los pixels o figuras que se dibujen borrarán los pixels del área de gráficos y los harán transparentes. Esto es especialmente útil cuando se crean sprites usando el comando Spriteslice.\\
^Nombres de color y valores RGB^^^^
^Nombre del color^Valores RGB^^
|black|0, 0, 0|~~SP~~~~SP~~~~SP~~~~SP~~~~SP~~~~SP~~~~SP~~~~SP~~|
|white|255, 255, 255|~~SP~~~~SP~~~~SP~~~~SP~~~~SP~~~~SP~~~~SP~~~~SP~~|
|red|255, 0, 0|~~SP~~~~SP~~~~SP~~~~SP~~~~SP~~~~SP~~~~SP~~~~SP~~|
|darkred|128, 0, 0|~~SP~~~~SP~~~~SP~~~~SP~~~~SP~~~~SP~~~~SP~~~~SP~~|
|green|0, 255, 0|~~SP~~~~SP~~~~SP~~~~SP~~~~SP~~~~SP~~~~SP~~~~SP~~|
|darkgreen|0, 128, 0|~~SP~~~~SP~~~~SP~~~~SP~~~~SP~~~~SP~~~~SP~~~~SP~~|
|blue|0, 0, 255|~~SP~~~~SP~~~~SP~~~~SP~~~~SP~~~~SP~~~~SP~~~~SP~~|
|darkblue|0, 0, 128|~~SP~~~~SP~~~~SP~~~~SP~~~~SP~~~~SP~~~~SP~~~~SP~~|
|cyan|0, 255, 255|~~SP~~~~SP~~~~SP~~~~SP~~~~SP~~~~SP~~~~SP~~~~SP~~|
|darkcyan|0, 128, 128|~~SP~~~~SP~~~~SP~~~~SP~~~~SP~~~~SP~~~~SP~~~~SP~~|
|purple|255, 0, 255|~~SP~~~~SP~~~~SP~~~~SP~~~~SP~~~~SP~~~~SP~~~~SP~~|
|darkpurple|128, 0, 128|~~SP~~~~SP~~~~SP~~~~SP~~~~SP~~~~SP~~~~SP~~~~SP~~|
|yellow|255, 255, 0|~~SP~~~~SP~~~~SP~~~~SP~~~~SP~~~~SP~~~~SP~~~~SP~~|
|darkyellow|128, 128 ,0|~~SP~~~~SP~~~~SP~~~~SP~~~~SP~~~~SP~~~~SP~~~~SP~~|
|orange|255, 102, 0|~~SP~~~~SP~~~~SP~~~~SP~~~~SP~~~~SP~~~~SP~~~~SP~~|
|darkorange|176, 61 ,0|~~SP~~~~SP~~~~SP~~~~SP~~~~SP~~~~SP~~~~SP~~~~SP~~|
|grey|164, 164 ,164|~~SP~~~~SP~~~~SP~~~~SP~~~~SP~~~~SP~~~~SP~~~~SP~~|
|darkgrey|128, 128 ,128|~~SP~~~~SP~~~~SP~~~~SP~~~~SP~~~~SP~~~~SP~~~~SP~~|
|clear|-1|~~SP~~|
==== Ver también ====
[[rgb|Rgb]], [[getcolor|GetColor]]
==== Ejemplo ====
clg
color grey
rect 0,0,graphwidth, graphheight
color red
circle 100,100,50
color rgb(255,160,160)
circle 100,100,25
dibujará un rectángulo gris con un círculo rojo con el centro rosa.\\
{{:en:color.png|Color}}
==== Disponible desde la versión ====
0.9.5m