This shows you the differences between two versions of the page.
ro:color [2017/08/25 16:31] junior-root created |
ro:color [2020/02/28 10:46] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Color (Instrucțiune) ===== | ||
- | > **Engleză: | ||
- | ==== Format ==== | ||
- | **color** [[colorconstants|nume_culoare]]\\ | ||
- | **color** ( [[colorconstants|nume_culoare]] )\\ | ||
- | **color** [[rgb|expresie_rgb]]\\ | ||
- | **color** ( [[rgb|expresie_rgb]] )\\ | ||
- | **color** [[colorconstants|nume_culoare_creion]] , [[colorconstants|nume_culoare_pensulă]]\\ | ||
- | **color** ( [[colorconstants|nume_culoare_creion]] , [[colorconstants|nume_culoare_pensulă]] )\\ | ||
- | **color** [[rgb|expresie_rgb_creion]] , [[rgb|expresie_rgb_pensulă]]\\ | ||
- | **color** ( [[rgb|expresie_rgb_creion]] , [[rgb|expresie_rgb_pensulă]] ) | ||
- | ==== Descriere ==== | ||
- | Stabilește culoarea cu care se desenează. | ||
- | |||
- | **Forme geometrice închise** | ||
- | |||
- | Când se desenează forme geometrice închise ([[Chord|Chord]], | ||
- | Dacă se specifică o singură culoare, atunci atât culoarea creionului cât și culoarea pensulei vor fi stabilite la aceeași valoare. | ||
- | Pentru a evita umplerea formei (atunci când se dorește desenarea doar a conturului formei) se va folosi pentru pensulă culoarea **CLEAR** (transparent). | ||
- | Dacă atât culoarea creionului cât și culoarea pensulei sunt stabilite la culoarea **CLEAR** (transparent), | ||
- | |||
- | **Forme geometrice închise** | ||
- | |||
- | |||
- | Sets the current drawing color to // | ||
- | When drawing solid shapes ([[Chord|Chord]], | ||
- | If the current pen and brush are both set to CLEAR the pixels or shapes drawn will clear the pixels of the graphics output area and make them transparent. | ||
- | {{page> | ||
- | ==== Deprecated Form ==== | ||
- | In version 0.9.9.26 the statement form " | ||
- | ==== Exemplu ==== | ||
- | < | ||
- | clg | ||
- | color rgb(128, | ||
- | rect 0, | ||
- | penwidth 5 | ||
- | color green,red | ||
- | circle 100,100,50 | ||
- | penwidth 1 | ||
- | color rgb(255, | ||
- | circle 100,100,25 | ||
- | </ | ||
- | Will draw a grey rectangle with a green circle filled with red and then a pink circle inside it.\\ | ||
- | {{: | ||
- | |||
- | ==== Vezi și ==== | ||
- | {{page> | ||
- | ==== Istoric ==== | ||
- | |0.9.5m|added "COLOR r,g,b" form and numeric representation of color names| | ||
- | |0.9.9.26|Added brush color and deprecated the "COLOR r, | ||
- | |0.9.9.28|Changed color values to include Alpha (transparency) and changed color constants to new ARGB values.| | ||
- | |0.9.9.45|changed values to positive numbers following formula as documented.| | ||