Libraryless. Click here for Pure Java version (9600L/52K).
1 | persistable asclass AbstractHasHi15Color {
|
2 | // Color in 15 bit |
3 | settable short hi15color; |
4 | |
5 | Color color() {
|
6 | ret main hi15color(hi15color); |
7 | } |
8 | |
9 | selfType color(Color color) {
|
10 | ret hi15color(colorToHi15(color)); |
11 | } |
12 | |
13 | S colorToString() {
|
14 | ret lower(colorToHex(color())); |
15 | } |
16 | } |
Began life as a copy of #1035708
download show line numbers debug dex old transpilations
Travelled to 2 computer(s): elmgxqgtpvxh, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1035817 |
| Snippet name: | AbstractHasHi15Color |
| Eternal ID of this version: | #1035817/3 |
| Text MD5: | 61314fb7203058c8716de2da1bc41a25 |
| Transpilation MD5: | 8006b6fc5695efa908584b0ad0c1127b |
| Author: | stefan |
| Category: | javax / imaging |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-07-31 20:04:37 |
| Source code size: | 311 bytes / 16 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 549 / 653 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |