compositor for 2d glitch effects
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

statics_and_lists.pde 1.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. final static int INTVAL = 100;
  2. final static int FLOATVAL = 101;
  3. final int[] blends = {ADD, SUBTRACT, DARKEST, LIGHTEST, DIFFERENCE, EXCLUSION, MULTIPLY, SCREEN, OVERLAY, HARD_LIGHT, SOFT_LIGHT, DODGE, BURN};
  4. //waveforms for oscillator
  5. final static int SINE = 0; //add 0.25 to phase to get cos
  6. final static int SAWTOOTH = 1;
  7. final static int SAWTOOTHINVERSE = 2;
  8. final static int SQUAR = 3; //switches between -1 and 1, that's all
  9. final static int TRIANG = 4;
  10. final static int TAN = 5;
  11. final static int TANINVERSE = 6;
  12. final static int RAMP = 7; //line for half the sequence up to 1, then stay at 1 for the other half
  13. final static int RAMPINVERSE = 8; //line for half the sequence up to 1, then stay at 1 for the other half
  14. final static int RAMPUPDOWN = 9; //line up, stay, line down, stay
  15. final static int RANDOM = 10;
  16. //colorspaces from tomasz sulej's FM effect
  17. final static int COLORSPACES = 16;
  18. final static int OHTA = 0;
  19. // RGB == 1; defined in processing
  20. final static int CMY = 2;
  21. // HSB == 3; defined in processing
  22. final static int XYZ = 4;
  23. final static int YXY = 5;
  24. final static int HCL = 6;
  25. final static int LUV = 7;
  26. final static int LAB = 8;
  27. final static int HWB = 9;
  28. final static int RGGBG = 10;
  29. final static int YPbPr = 11;
  30. final static int YCbCr = 12;
  31. final static int YDbDr = 13;
  32. final static int GS = 14;
  33. final static int YUV = 15;
  34. //available shaders
  35. String availableFx[] = {
  36. "fxASDFPixelSort",
  37. "fxDistorter",
  38. "fxFM",
  39. "fxWZIP",
  40. "fxAuEcho",
  41. "fxSlitscan",
  42. "fxWahWah",
  43. "fxPhaser",
  44. "fxEcho",
  45. "fxDarker",
  46. "fxBrighter",
  47. "fxAmplify",
  48. "fxBrokenColorRot",
  49. "fxPosterize",
  50. "fxDual",
  51. "fxGrauzone",
  52. "fxCopyZoom",
  53. "fxMove",
  54. "fxScanker",
  55. "fxPixelSort",
  56. "fxSubtleSort",
  57. "fxMosh",
  58. "fxPixelDrifter",
  59. "fxDrawGenerative",
  60. "fxDrawStrokes"
  61. };