diff --git a/basis/ui/render/render-docs.factor b/basis/ui/render/render-docs.factor index 04b623672d..fc16ed9345 100755 --- a/basis/ui/render/render-docs.factor +++ b/basis/ui/render/render-docs.factor @@ -38,16 +38,16 @@ HELP: draw-boundary { $contract "Draws the boundary of a gadget by making OpenGL calls. The " { $snippet "boundary" } " slot may be set to objects implementing this generic word." } ; HELP: solid -{ $class-description "A class implementing the " { $link draw-boundary } " and " { $link draw-interior } " generic words to draw a solid outline or a solid fill, respectively. The " { $link solid-color } " slot stores a color specifier." } ; +{ $class-description "A class implementing the " { $link draw-boundary } " and " { $link draw-interior } " generic words to draw a solid outline or a solid fill, respectively. The " { $snippet "color" } " slot stores a color specifier." } ; HELP: gradient -{ $class-description "A class implementing the " { $link draw-interior } " generic word to draw a smoothly shaded transition between colors. The " { $link gradient-colors } " slot stores a sequence of color specifiers and the gradient is drawn in the direction given by the " { $snippet "orientation" } " slot of the gadget." } ; +{ $class-description "A class implementing the " { $link draw-interior } " generic word to draw a smoothly shaded transition between colors. The " { $snippet "colors" } " slot stores a sequence of color specifiers and the gradient is drawn in the direction given by the " { $snippet "orientation" } " slot of the gadget." } ; HELP: polygon { $class-description "A class implementing the " { $link draw-boundary } " and " { $link draw-interior } " generic words to draw a solid outline or a solid filled polygon, respectively. Instances of " { $link polygon } " have two slots:" { $list - { { $link polygon-color } " - a color specifier" } - { { $link polygon-points } " - a sequence of points" } + { { $snippet "color" } " - a color specifier" } + { { $snippet "points" } " - a sequence of points" } } } ; diff --git a/basis/ui/render/render.factor b/basis/ui/render/render.factor index a4bb353d1b..2147fc2b53 100644 --- a/basis/ui/render/render.factor +++ b/basis/ui/render/render.factor @@ -95,7 +95,7 @@ C: solid ! Solid pen : (solid) ( gadget paint -- loc dim ) - solid-color set-color rect-dim >r origin get dup r> v+ ; + color>> set-color rect-dim >r origin get dup r> v+ ; M: solid draw-interior (solid) gl-fill-rect ; @@ -109,7 +109,7 @@ C: gradient M: gradient draw-interior origin get [ over orientation>> - swap gradient-colors + swap colors>> rot rect-dim gl-gradient ] with-translation ; @@ -121,7 +121,7 @@ C: polygon : draw-polygon ( polygon quot -- ) origin get [ - >r dup polygon-color set-color polygon-points r> call + >r dup color>> set-color points>> r> call ] with-translation ; inline M: polygon draw-boundary