]> gitweb.factorcode.org Git - factor.git/blobdiff - extra/benchmark/mandel/colors/colors.factor
Delete empty unit tests files, remove 1- and 1+, reorder IN: lines in a lot of places...
[factor.git] / extra / benchmark / mandel / colors / colors.factor
index edc848a0caabde94b9f3959382070980d670af05..0300538ce101d0f9d3b07df6039a1fc47ccc3345 100644 (file)
@@ -7,12 +7,12 @@ IN: benchmark.mandel.colors
 : scale-rgb ( rgba -- n )
     [ red>> scale ] [ green>> scale ] [ blue>> scale ] tri 3byte-array ;
 
-: sat 0.85 ; inline
-: val 0.85 ; inline
+CONSTANT: sat 0.85
+CONSTANT: val 0.85
 
 : <color-map> ( nb-cols -- map )
     dup [
-        360 * swap 1+ / sat val
+        360 * swap 1 + / sat val
         1 <hsva> >rgba scale-rgb
     ] with map ;