Some dfhack scripts from friends of keupo on twitch
note: any of the drawing commands can be appended with a digging designation [dujihrx] at the end, or will default to 'd'
for example, digshape star 5 2 j will dig a 5 pointed star out of downstairs with the mark as the center and the cursor as a vertex on the star
digshape ?
digshape origin
digshape line
from cursor to mark
digshape ellipse [filled]
cursor and mark as bounding box
digshape major
set the end of the major axis from origin to mark
digshape ellipse 3p
draw the ellipse using new cursor as the semiminor axis length (center->cursor) Note: ellipse3p cannot yet be filled
digshape circle 2p
cursor and mark form the diameter of the circle (at any tilt)
digshape major
set the end point of the curve
digshape bez [sharpness=1.5]
draw the curve between mark and endpoint, pulled towards the cursor. A weight may be specified to adjust the sharpness of the curve.
digshape polygon <n sides>
mark as center and cursor as a vertex
digshape polygon <n sides> apothem
mark as center and cursor as a midpoint
digshape star <n sides> [skip=2]
in Schläfli symbol notation mark as center and cursor as a vertex
- flipvine
- Qvatch
- keupo
- flavorstreet
A Fast Bresenham Type Algorithm For Drawing Ellipses, alternate link, also in resources/belipse.pdf
A Rasterizing Algorithm for Drawing Curves
Writeable Bitmap Shape Extensions used under the MIT license