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

31
LINES

< > BotCompany Repo | #1035927 // BlurAndPosterizeSettings

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

Libraryless. Click here for Pure Java version (10369L/58K).

sclass BlurAndPosterizeSettings > MetaWithChangeListeners {
  settable int blur = 0;
  settable int colors = 64;
  settable RGB colorDrift = noColorDrift();
  settable RGB antiDrift = noColorDrift();
  
  static RGB noColorDrift() { ret new RGB(0f); }
  
  BlurAndPosterizeSettings cloneMe() {
    ret shallowClone(this)
      .colorDrift(colorDrift.cloneMe())
      .antiDrift(antiDrift.cloneMe());
  }
  
  toString {
    /*if (eq(colorDrift, noColorDrift()))
      ret stdToStringWithFields(this, "blur", "colors");
    else*/
      ret stdToString(this);
  }
  
  @Override
  public bool equals(O o) {
    ret stdEq_nonTransient(this, o);
  }
  
  @Override
  public int hashCode() {
    ret stdHash_nonTransient(this);
  }
}

Author comment

Began life as a copy of #1034027

download  show line numbers  debug dex  old transpilations   

Travelled to 2 computer(s): elmgxqgtpvxh, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1035927
Snippet name: BlurAndPosterizeSettings
Eternal ID of this version: #1035927/9
Text MD5: 00f327bf245e10542d1bacde6965e31b
Transpilation MD5: a3533a1da7843098c0e82c0c3bf3e8e5
Author: stefan
Category: javax / gazelle 22
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-08-21 11:57:48
Source code size: 759 bytes / 31 lines
Pitched / IR pitched: No / No
Views / Downloads: 116 / 185
Version history: 8 change(s)
Referenced in: [show references]