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).

1  
sclass BlurAndPosterizeSettings > MetaWithChangeListeners {
2  
  settable int blur = 0;
3  
  settable int colors = 64;
4  
  settable RGB colorDrift = noColorDrift();
5  
  settable RGB antiDrift = noColorDrift();
6  
  
7  
  static RGB noColorDrift() { ret new RGB(0f); }
8  
  
9  
  BlurAndPosterizeSettings cloneMe() {
10  
    ret shallowClone(this)
11  
      .colorDrift(colorDrift.cloneMe())
12  
      .antiDrift(antiDrift.cloneMe());
13  
  }
14  
  
15  
  toString {
16  
    /*if (eq(colorDrift, noColorDrift()))
17  
      ret stdToStringWithFields(this, "blur", "colors");
18  
    else*/
19  
      ret stdToString(this);
20  
  }
21  
  
22  
  @Override
23  
  public bool equals(O o) {
24  
    ret stdEq_nonTransient(this, o);
25  
  }
26  
  
27  
  @Override
28  
  public int hashCode() {
29  
    ret stdHash_nonTransient(this);
30  
  }
31  
}

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: 122 / 195
Version history: 8 change(s)
Referenced in: [show references]