LibreLogo
Memperpendek Definisi Warna:
Hal ini didokumentasikan bahwa warna dapat didefinisikan oleh nama, identifier, nilai RGB, atau kode HEX.
Dalam sebagian besar kasus, jika Anda memiliki kesempatan untuk menggunakan pengidentifikasi untuk konstanta warna, itu biasanya merupakan pilihan terpendek.
Di sisi lain, fakta yang sedikit diketahui adalah bahwa Anda juga dapat menggunakan nilai desimal untuk menentukan warna, dan sesekali Anda dapat menyimpan byte.
Bagan Warna:
+------------------------------------------------------------------------+ +-------------+
| Name | Identifier | RGB | HEX | Decimal | | Best Option |
|------------------------------------------------------------------------| |-------------|
| "BLACK" | [0] | [0,0,0] | 0x000000 | 0 | | 0 |
| "SILVER" | [1] | [192,192,192] | 0xc0c0c0 | 12632256 | | [1] |
| "GRAY"/"GREY" | [2] | [128,128,128] | 0x808080 | 8421504 | | [2] |
| "WHITE" | [3] | [255,255,255] | 0xffffff | 16777215 | | [3] |
| "MAROON" | [4] | [128,0,0] | 0x800000 | 8388608 | | [4] |
| "RED" | [5] | [255,0,0] | 0xff0000 | 16711680 | | [5] |
| "PURPLE" | [6] | [128,0,128] | 0x800080 | 8388736 | | [6] |
| "FUCHSIA"/"MAGENTA" | [7] | [255,0,255] | 0xff00ff | 16711935 | | [7] |
| "GREEN" | [8] | [0,128,0] | 0x008000 | 32768 | | [8] |
| "LIME" | [9] | [0,255,0] | 0x00ff00 | 65280 | | [9] |
| "OLIVE" | [10] | [128,128,0] | 0x808000 | 8421376 | | [10] |
| "YELLOW" | [11] | [255,255,0] | 0xffff00 | 16776960 | | [11] |
| "NAVY" | [12] | [0,0,128] | 0x000080 | 128 | | 128 |
| "BLUE" | [13] | [0,0,255] | 0x0000ff | 255 | | 255 |
| "TEAL" | [14] | [0,128,128] | 0x008080 | 32896 | | [14] |
| "AQUA" | [15] | [0,255,255] | 0x00ffff | 65535 | | [15] |
| "PINK" | [16] | [255,192,203] | 0xffc0cb | 16761035 | | [16] |
| "TOMATO" | [17] | [255,99,71] | 0xff6347 | 16737095 | | [17] |
| "ORANGE" | [18] | [255,165,0] | 0xffa500 | 16753920 | | [18] |
| "GOLD" | [19] | [255,215,0] | 0xffd700 | 16766720 | | [19] |
| "VIOLET" | [20] | [148,0,211] | 0x9400d3 | 9699539 | | [20] |
| "SKYBLUE" | [21] | [135,206,235] | 0x87ceeb | 8900331 | | [21] |
| "CHOCOLATE" | [22] | [210,105,30] | 0xd2691e | 13789470 | | [22] |
| "BROWN" | [23] | [165,42,42] | 0xa52a2a | 10824234 | | [23] |
| "INVISIBLE" | [24] | N/A | N/A | N/A | | [24] |
+------------------------------------------------------------------------+ +-------------+