tinyvg vocabulary
Factor handbook ยป Vocabulary index


Summary
Parsers for the TinyVG image format

Metadata
Authors:John Benediktsson


Words

Tuple classes
ClassSuperclassSlots
arc instructionlarge-arc? sweep?
arc-circle arcradius target
arc-ellipse arcradius-x radius-y rotation target
close-path instruction
cubic-bezier instructioncontrol0 control1 point1
diagonal-line instructionposition
draw-line tupleline-style line-width
draw-line-loop draw-linepoints
draw-line-path draw-linepath
draw-line-strip draw-linepoints
draw-lines draw-linelines
fill tuplefill-style
fill-path fillpath
fill-polygon fillpolygon
fill-rectangles fillrectangles
flat-colored tuplecolor-index
gradient tuplepoint0 point1 color-index0 color-index1
horizontal-line instructionx
instruction tupleline-width
invalid-color tuplecolor-index
invalid-length tuplen
line tuplestart end
linear-gradient gradient
outline-fill tuplefill-style line-style line-width
outline-fill-path outline-fillpath
outline-fill-polygon outline-fillpoints
outline-fill-rectangles outline-fillrectangles
point tuplex y
quadratic-bezier instructioncontrol point1
radial-gradient gradient
rectangle tuplex y width height
segment tuplestart instructions
tinyvg tuplescale color-encoding coordinate-range width height color-table commands
vertical-line instructiony


Generic words
WordStack effect
write-command( command -- )
write-instruction( instruction -- )
write-style( style -- )


Symbol words
color-encoding
color-table
coordinate-range
scale-factor


Ordinary words
WordStack effect
<arc-circle>( line-width large-arc? sweep? radius target -- arc-circle )
<arc-ellipse>( line-width large-arc? sweep? radius-x radius-y rotation target -- arc-ellipse )
<close-path>( line-width -- close-path )
<cubic-bezier>( line-width control0 control1 point1 -- cubic-bezier )
<diagonal-line>( line-width position -- diagonal-line )
<draw-line-loop>( line-style line-width points -- draw-line-loop )
<draw-line-path>( line-style line-width path -- draw-line-path )
<draw-line-strip>( line-style line-width points -- draw-line-strip )
<draw-lines>( line-style line-width lines -- draw-lines )
<fill-path>( fill-style path -- fill-path )
<fill-polygon>( fill-style polygon -- fill-polygon )
<fill-rectangles>( fill-style rectangles -- fill-rectangles )
<flat-colored>( color-index -- flat-colored )
<horizontal-line>( line-width x -- horizontal-line )
<line>( start end -- line )
<linear-gradient>( point0 point1 color-index0 color-index1 -- linear-gradient )
<outline-fill-path>( fill-style line-style line-width path -- outline-fill-path )
<outline-fill-polygon>( fill-style line-style line-width points -- outline-fill-polygon )
<outline-fill-rectangles>( fill-style line-style line-width rectangles -- outline-fill-rectangles )
<point>( x y -- point )
<quadratic-bezier>( line-width control point1 -- quadratic-bezier )
<radial-gradient>( point0 point1 color-index0 color-index1 -- radial-gradient )
<rectangle>( x y width height -- rectangle )
<segment>( start instructions -- segment )
<tinyvg>( scale color-encoding coordinate-range width height color-table commands -- tinyvg )
<vertical-line>( line-width y -- vertical-line )
bytes>tinyvg( byte-array -- tinyvg )
check-color( color-index -- color-index )
coordinate-bytes( -- n )
invalid-color( color-index -- * )
invalid-length( n -- * )
path>tinyvg( path -- tinyvg )
read-arc( -- large-arc? sweep? )
read-color( -- color )
read-color-index( -- color-index )
read-color-table( color-count -- color-table )
read-command( -- command/f )
read-commands( -- commands )
read-draw-line( style-kind -- line-style line-width count )
read-draw-line-loop( style-kind -- command )
read-draw-line-path( style-kind -- command )
read-draw-line-strip( style-kind -- command )
read-draw-lines( style-kind -- command )
read-fill( style-kind -- style count )
read-fill-path( style-kind -- command )
read-fill-polygon( style-kind -- command )
read-fill-rectangles( style-kind -- command )
read-float32( -- n )
read-gradient( class -- style )
read-instruction( -- instruction )
read-instructions( n -- instructions )
read-line( -- line )
read-lines( n -- rectangles )
read-outline-fill( style-kind -- fill-style line-style line-width count )
read-outline-fill-path( style-kind -- command )
read-outline-fill-polygon( style-kind -- command )
read-outline-fill-rectangles( style-kind -- command )
read-path( segment-count -- segments )
read-point( -- point )
read-points( n -- rectangles )
read-rectangle( -- rectangle )
read-rectangles( n -- rectangles )
read-rgb-565( -- rgba )
read-rgba-8888( -- rgba )
read-rgba-f32( -- rgba )
read-segment( n -- segment )
read-style( style-kind -- style )
read-tag( -- line-width/f tag )
read-tinyvg( -- tinyvg )
read-unit( -- n )
read-varuint( -- n )
tinyvg-magic( -- value )
tinyvg-version( -- value )
tinyvg>bytes( tinyvg -- byte-array )
tinyvg>path( tinyvg path -- )
write-arc( instruction -- )
write-color( color -- )
write-commands( commands -- )
write-draw-line( command n seq -- )
write-fill( command n seq -- )
write-float32( n -- )
write-length( n -- )
write-line( line -- )
write-outline-fill( command n seq -- )
write-path( segments -- )
write-point( point -- )
write-rectangle( rectangle -- )
write-rgb-565( rgba -- )
write-rgba-8888( rgba -- )
write-rgba-f32( rgba -- )
write-segment( segment -- )
write-style-kind( style n -- )
write-tag( instruction n -- )
write-tinyvg( tinyvg -- )
write-unit( n -- )
write-varuint( n -- )


Class predicate words
WordStack effect
arc-circle?( object -- ? )
arc-ellipse?( object -- ? )
arc?( object -- ? )
close-path?( object -- ? )
cubic-bezier?( object -- ? )
diagonal-line?( object -- ? )
draw-line-loop?( object -- ? )
draw-line-path?( object -- ? )
draw-line-strip?( object -- ? )
draw-line?( object -- ? )
draw-lines?( object -- ? )
fill-path?( object -- ? )
fill-polygon?( object -- ? )
fill-rectangles?( object -- ? )
fill?( object -- ? )
flat-colored?( object -- ? )
gradient?( object -- ? )
horizontal-line?( object -- ? )
instruction?( object -- ? )
invalid-color?( object -- ? )
invalid-length?( object -- ? )
line?( object -- ? )
linear-gradient?( object -- ? )
outline-fill-path?( object -- ? )
outline-fill-polygon?( object -- ? )
outline-fill-rectangles?( object -- ? )
outline-fill?( object -- ? )
point?( object -- ? )
quadratic-bezier?( object -- ? )
radial-gradient?( object -- ? )
rectangle?( object -- ? )
segment?( object -- ? )
tinyvg?( object -- ? )
vertical-line?( object -- ? )


Files


Metadata files