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.9KB

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