Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

16
LINES

< > BotCompany Repo | #1035817 // AbstractHasHi15Color

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (9600L/52K).

persistable asclass AbstractHasHi15Color {
  // Color in 15 bit
  settable short hi15color;
  
  Color color() {
    ret main hi15color(hi15color);
  }
  
  selfType color(Color color) {
    ret hi15color(colorToHi15(color));
  }
  
  S colorToString() {
    ret lower(colorToHex(color()));
  }
}

Author comment

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: 103 / 161
Version history: 2 change(s)
Referenced in: [show references]