Lock in $30 Savings on PRO—Offer Ends Soon! ⏳

Decksh keywords

Avatar for Anthony Starks Anthony Starks
December 12, 2025

Decksh keywords

Lists the usage of all decksh keywords

Avatar for Anthony Starks

Anthony Starks

December 12, 2025
Tweet

More Decks by Anthony Starks

Other Decks in Design

Transcript

  1. Keyword Arguments Description Structure Utility Graphics deck def for if

    import include slide edeck edef efor eif else canvas content dump grid ruler acircle arc circle curve ellipse hline line pill polygon polyline rect rrect square star vline name args... x=begin end [increment] condition...[else]...eif "file" "file" [bgcolor] [fgcolor] width height "scheme://file" [name] "file" x y hspace vspace edge [increment] [color] x y w [color] [opacity] x y w h a1 a2 [lw] [color] [opacity] x y w [color] [opacity] bx by cx cy ex ey [lw] [color] [opacity] x y w h [color] [opacity] x y w [lw] [color] [opacity] x1 y1 x2 y2 [lw] [color] [opacity] x y w h [color] "x1 x2 x3...." "y1 y2 y3..." [color] [opacity] "x1 x2 x3...." "y1 y2 y3..." [lw] [color] [opacity] x y w h [color] [opacity] x y w h r [color] [opacity] x y w [color] [opacity] x y sides inner outer [color] [opacity] x y h [lw] [color] [opacity] Begin a deck; end with "edeck" Define a function; end with "edef" Begin loop; end with "efor" Conditional; one of: a==b, a!=b, a>b, a<b, a>=b, a<=b, a<>b c import function found in a file Include the contents of a file Begin a slide; end with "eslide" End the deck End the defintion End the for loop End the conditional Begin the else clause Define with dimensions of the canvas Embed content Dump variables Define a content grid draw a (x,y) ruler Circle with sized based on area Ellipical arc centered at (x,y), dimensions (w,h) between angles a1 and a2 Circle centered at (x,y), diameter w Quadradic Bezier Curve begin (bx,by), control (cx, cy), end (ex,ey) Ellipse centered at (x,y), dimension (w,h) Horizontal line begin at (x,y), length w Line between (x1,y1) and (x2,y2) Pill shape beginning at (x,y), dimensions (w,h) Polygon with specified x, y coordinates Polyline with specified x, y coordinates Rectangle centered at (x,y), dimensions (w,h) Rounded rectangle centered at (x,y), dimensions (w,h), corner radius r Square centered at (x,y), size w Star centered at (x,y), with sides, innner and outer sizes Vertical line beginning at (x,y), h high
  2. Keyword Arguments Description Text Lists Images Braces/ Brackets arctext btext

    ctext etext rtext text textblock textblockfile textcode textfile blist clist list nlist li elist cimage image dbrace dbracket lbrace lbracket rbrace rbracket ubrace ubracket "string" x y radius a1 a2 fontsize [font] [color] [opacity] [link] "string" x y fontsize [font] [color] [opacity] [link] "string" x y fontsize [font] [color] [opacity] [link] "string" x y fontsize [font] [color] [opacity] [link] "string" x y angle fontsize [font] [color] [opacity] [link] "string" x y fontsize [font] [color] [opacity] [link] "string" x y w fontsize [font] [color] [opacity] [link] "file" x y w fontsize [font] [color] [opacity] [link] "file" x y w fontsize [font] [color] [opacity] "file" x y fontsize [font] [color] [opacity] [spacing] x y fontsize [font] [color] [opacity] [spacing] x y fontsize [font] [color] [opacity] [spacing] x y fontsize [font] [color] [opacity] [spacing] x y fontsize [font] [color] [opacity] [spacing] "item" [font] [color] [opacity] "file" "caption" x y w h [scale] [link] capsize "file" x y w h [scale] [link] x y w bw bh [lw] [color] [opacity] x y w h [lw] [color] [opacity] x y h bw bh [lw] [color] [opacity] x y w h [lw] [color] [opacity] x y h bw bh [lw] [color] [opacity] x y w h [lw] [color] [opacity] x y w bw bh [lw] [color] [opacity] x y w h [lw] [color] [opacity] Text on an arc, at fontsize, center (x,y), radius r, between a1. a2 Text beginning at (x,y), at fontsize Centered text beginning at (x,y), at fontsize End-aligned text at (x,y), at fontsize Rotated text centered at x,y), at angle and fontsize Text beginning at (x,y), at fontsize Block of text beginning at (x,y), at fontsize, with width w Block of text read for a file, beginning at (x,y), at fontsize, with width w Lines of code, read from a file, upper right corner at (x,y), margin at w Contents of a text file pper right corner at (x,y) Bulleted list starting at (x,y), at fontsize Centered list starting at (x,y), at fontsize List starting at (x,y), at fontsize Numbered list starting at (x,y), at fontsize List item End the list Captioned image; center (x,y), dimensions (w,h) (h=0, w is % of canvas width) Image center at (x,y), dimensions (w,h) (h=0, w is % of canvas width) Downward pointing brace Downward pointing bracket Left pointing brace Left pointing bracket Right pointing brace Right pointing bracket Upward facing brace Upward facing bracket
  3. Keyword Arguments Description Arrows Charts Built-ins Math Geographic arrow dcarrow

    lcarrow rcarrow ucarrow dchart legend x=area x=format x=polar x=polarx x=polary x=random x=substr x=vmap x=cosine x=sine x=sqrt x=tangent geoarc geoborder geoimage geolabel geoloc geomark geopath geopathfile georegion x1 y1 x2 y2 [lw] [aw] [ah] [color] [opacity] bx by bx xy ex ey [lw] [aw] [ah] [color] [opacity] bx by bx xy ex ey [lw] [aw] [ah] [color] [opacity] bx by bx xy ex ey [lw] [aw] [ah] [color] [opacity] bx by bx xy ex ey [lw] [aw] [ah] [color] [opacity] options... "string" x y fontsize font color expression "fmt" expr... (up to 5) x y radius angle x y radius angle x y radius angle min max "string" begin end data min1 max1 min2 max2 expression expression expression expression "p1" "p2" [lw] [color] [opacity] "file" [lw] [color] [opacity] "loc" width height "loc" [size] [font] [color] [opacity] "loc" [align] [size] [font] [color] [opacity] "loc" [size] [color] [opacity] "p1" "p2" [lw] [color] [opacity] "file" [lw] [color] [opacity] "file" [color] [opacity] Arrow starting at (x1,y1), ending at (x2,y2), aw=width, ah=height Downward curved arrow; curve specified by (bx,by), (cx,cy), (ex,ey) Left curved arrow; curve specified by (bx,by), (cx,cy), (ex,ey) Right curved arrow; curve specified by (bx,by), (cx,cy), (ex,ey) Upward curved arrow; curve specified by (bx,by), (cx,cy), (ex,ey) Chart with specified options Chart legend Assign an area Assign formatting to expressions Assign polar coordinate centered at (x,y) at radius and angle (0-360) Assign X-polar coordinate centered at (x,y) at radius and angle (0-360) Assign Y-polar coordinate centered at (x,y) at radius and angle (0-360) Assign a random number between two values Assign a substring Assign a value mapped to two ranges Assign the cosine of expression sasign the sine of expression Assign the square root of expression Assign the tangent of expression Draw arcs between points Reads KML data from the specified file and renders the map borders Place an image at a geographical location Reads data from the specified file or location and renders the map labels Reads data from the specified file or location and a make map point and labels Reads data from the specified file or location and renders map points Draw line between points Reads data from the specified file and a make lines between points Reads KML data from the specified file and renders the map regions