Advertisement
Guest User

Untitled

a guest
Sep 13th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. #@gui CubeHelix: fx_cubehelix, fx_cubehelix_preview(1)
  2. #@gui : Start colour = color(0,0,0)
  3. #@gui : End colour = color(255,255,255)
  4. #@gui : Start hue = float(1,0,3)
  5. #@gui : Rotations = float(-1.5,-20,20)
  6. #@gui : Saturation = float(1,0,5)
  7. #@gui : Gamma = float(1,0,5)
  8. #@gui : Normalise = bool(0)
  9. #@gui : sep = separator(), Preview type = choice("Full","Forward horizontal","Forward vertical","Backward horizontal","Backward vertical","Duplicate top","Duplicate left","Duplicate bottom","Duplicate right","Duplicate horizontal","Duplicate vertical","Checkered","Checkered inverse"), Preview split = point(50,50,0,0,200,200,200,0,10,0)
  10. fx_cubehelix :
  11.  
  12. to_gray to_rgb abs c 0,255 *. {1/255}
  13. f "angle=(2*pi*(($7/3)+1+$8*I));fract=(I^$10);amp=($9*fract*(1-fract)/2);
  14. ((([${1-3}]+(fract*([${4-6}]-[${1-3}])))/255)+amp*[-0.14861*cos(angle[0])+1.78277*sin(angle[0]),-0.29227*cos(angle[1])-0.90649*sin(angle[1]),1.97294*cos(angle[2])])"
  15. c 0,1
  16. *. 255
  17. if $11 n 0,255 fi
  18. fx_cubehelix_preview :
  19. gui_split_preview "fx_cubehelix $*",${-3--1}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement