retesere20

pine generate col

Jun 18th, 2020
25
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. // ########### output gradient script #############
  3.  
  4. $o = "";
  5. $opacityStep = 5;
  6. $ar=['aqua', 'black', 'blue', 'fuchsia', 'gray', 'green', 'lime', 'orange', 'purple', 'red', 'white', 'yellow'];
  7. foreach($ar as $c){
  8. $o .="c==\"$c\" ? (";
  9. for($i=0; $i<100/$opacityStep;$i++){
  10. $j=$i*$opacityStep;
  11. $o .= "t==$j ? color.new(color.$c,$j) : ";
  12. }
  13. $o .=" color.new(color.$c,100) ) :<br/> ";
  14. }
  15. exit($o);
  16.  
  17.  
  18. ?>
RAW Paste Data