Advertisement
cab404

LWC serializator decoration

Mar 15th, 2014
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.85 KB | None | 0 0
  1.  
  2.     // Line dot diameter, formally - thickness
  3.     @SettingsField(min = 4, max = 32)
  4.     public int diameter = 16;
  5.  
  6.     // Line length, in dots
  7.     @SettingsField(min = 0, max = 800)
  8.     public int line_length = 150;
  9.  
  10.     // Number of lines
  11.     @SettingsField(min = 1, max = 60)
  12.     public int lines = 1;
  13.  
  14.     // Distance between dots in diameters.
  15.     @SettingsField(min = .25f, max = 1f, one_div_step = 100)
  16.     public float dist_scale = .25f;
  17.  
  18.     // Speed applied to dot while dragging to touch position.
  19.     @SettingsField(min = 0, max = 5000)
  20.     public float drag_speed = 2426f;
  21.  
  22.     // Maximum dot speed.
  23.     @SettingsField(min = 1, max = 3000)
  24.     public float max_speed = 912;
  25.  
  26.     // Is the surface is toroidal?
  27.     @SettingsField
  28.     public boolean toroidal = true;
  29.  
  30.     // Start color of line gradient
  31.     @SettingsField
  32.     public Color line_gradient_a = Color.valueOf("20004d");
  33.  
  34.     // End color of line gradient
  35.     @SettingsField
  36.     public Color line_gradient_b = Color.valueOf("8c0057");
  37.  
  38.     // Background color
  39.     @SettingsField
  40.     public Color bg_color = Color.valueOf("000020");
  41.  
  42.     // Algorithm of color changing
  43.     @SettingsField
  44.     public ColorCalculation coloring_algorithm = ColorCalculation.SPEED;
  45.  
  46.     public static enum ColorCalculation {
  47.         // Color changes with velocity vector angle.
  48.         VECTOR,
  49.         // Color changes with speed.
  50.         SPEED,
  51.         // Color changes automatically, you can control speed in rainbow_recurrence_speed
  52.         RAINBOWS
  53.     }
  54.  
  55.     // If touch points leaves in place even after you do not touch screen.
  56.     @SettingsField
  57.     public boolean leave_touches = true;
  58.  
  59.     // If rainbow coloring mode is on, this parameter controls color change speed.
  60.     @SettingsField(max = 15, min = 0.1f, one_div_step = 10)
  61.     public float rainbow_recurrence_speed = 1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement