Fixing help-lint issues
parent
af5e930782
commit
6906fad725
|
@ -2,7 +2,7 @@ IN: colors
|
||||||
USING: accessors help.markup help.syntax ;
|
USING: accessors help.markup help.syntax ;
|
||||||
|
|
||||||
HELP: color
|
HELP: color
|
||||||
{ $class-description "The class of colors. Implementations include " { $link rgba } ", " { $link "colors.gray" } " and " { $link "colors.hsv" } "." } ;
|
{ $class-description "The class of colors. Implementations include " { $link rgba } ", " { $link "colors.gray" } " and " { $vocab-link "colors.hsv" } "." } ;
|
||||||
|
|
||||||
HELP: rgba
|
HELP: rgba
|
||||||
{ $class-description "The class of colors with red, green, blue and alpha channel components. The slots store color components, which are real numbers in the range 0 to 1, inclusive." } ;
|
{ $class-description "The class of colors with red, green, blue and alpha channel components. The slots store color components, which are real numbers in the range 0 to 1, inclusive." } ;
|
||||||
|
|
|
@ -10,13 +10,13 @@ TUPLE: rgba < color red green blue alpha ;
|
||||||
|
|
||||||
C: <rgba> rgba
|
C: <rgba> rgba
|
||||||
|
|
||||||
GENERIC: >rgba ( object -- rgba )
|
GENERIC: >rgba ( color -- rgba )
|
||||||
|
|
||||||
M: rgba >rgba ( rgba -- rgba ) ;
|
M: rgba >rgba ( rgba -- rgba ) ;
|
||||||
|
|
||||||
M: color red>> ( color -- red ) >rgba red>> ;
|
M: color red>> ( color -- red ) >rgba red>> ;
|
||||||
M: color green>> ( color -- green ) >rgba green>> ;
|
M: color green>> ( color -- green ) >rgba green>> ;
|
||||||
M: color blue>> ( color -- blue ) >rgba blue>> ;
|
M: color blue>> ( color -- blue ) >rgba blue>> ;
|
||||||
|
|
||||||
: >rgba-components ( object -- r g b a )
|
: >rgba-components ( object -- r g b a )
|
||||||
>rgba { [ red>> ] [ green>> ] [ blue>> ] [ alpha>> ] } cleave ; inline
|
>rgba { [ red>> ] [ green>> ] [ blue>> ] [ alpha>> ] } cleave ; inline
|
||||||
|
|
|
@ -62,7 +62,7 @@ HELP: do-attribs
|
||||||
{ $description "Wraps a quotation in " { $link glPushAttrib } "/" { $link glPopAttrib } " calls." } ;
|
{ $description "Wraps a quotation in " { $link glPushAttrib } "/" { $link glPopAttrib } " calls." } ;
|
||||||
|
|
||||||
HELP: make-texture
|
HELP: make-texture
|
||||||
{ $values { "dim" "a pair of integers" } { "pixmap" c-ptr } { "type" "an OpenGL texture type" } { "id" "an OpenGL texture ID" } }
|
{ $values { "dim" "a pair of integers" } { "pixmap" c-ptr } { "format" "an OpenGL texture format, for example " { $link GL_UNSIGNED_BYTE } } { "type" "an OpenGL texture type, for example " { $link GL_RGBA } } { "id" "an OpenGL texture ID" } }
|
||||||
{ $description "Creates a new OpenGL texture from a pixmap image whose dimensions are equal to " { $snippet "dim" } "." } ;
|
{ $description "Creates a new OpenGL texture from a pixmap image whose dimensions are equal to " { $snippet "dim" } "." } ;
|
||||||
|
|
||||||
HELP: gen-dlist
|
HELP: gen-dlist
|
||||||
|
|
Loading…
Reference in New Issue