Skip to content

toomasv/console-tools

Repository files navigation

console-tools

Suite of in-console tools

do %console.red

Simple figures:

circle
ellipse
square
rectangle
box
line
arrow

Custom figures may be added with figure <draw-block> (where draw-block can also contain bounding-box <size>). Also you can add any face with console add <block of VID>.

Other tools:

notes        ;take quick notes while playing (try `note 'last | note <int>` or enter issue(s) as marker(s) and then `note/to #start #end` )
finder       ;find words and draw on screen, capture into %screenshot.png
live <lit-word or lit-path> ;live editing experiment
reminder     ;experiments with reminder (24 hour clock), e.g.:
             ;remind [9:00 "Breakfast" 10:00 "Meeting with X" 14:30 "Lunch at Y"]
history      ;quick selection from console's history (with contextual menu) into notes or caret (click)
define       ;adaptation of @rebolek's `where`
helper       ;inspector showing help-string (and args) on hovering and console hot-keys so far
styles       ;play with console styling options

Figures and tools can be removed by console [clear | remove | delete] ['all | '<figure> | '<tool> | object!], e.g.

console remove 'circle
console clear 'all
h: history
console remove h

There are some default settings that can influence things and which you can change with following:

console defaults [some [
  'sources file! ;for `define`
| 'tool-font [
    integer!     ;font-size
    | string!    ;font-name
    | word!      ;font-style
    | block!     ;font-spec
    ]
| 'toolbox integer! ;toolbox's width

;Figure's default attributes
| 'bounding-box ['large | 'small] ;large - transparent face-box is window-size; small - box is 100x100
| 'fill-pen   <color>
| 'pen        <color>
| 'line-width integer!
| 'rotate [pair! integer! | pair! | integer!] ;rotation center and angle
| 'scale [
    integer! integer!  ;separately x and y scale
    | 'x integer!      ;only x
    | 'y integer!      ;only y
    | integer!         ;same scale for both
    ]
| 'skew [
    integer! integer! ;Same as for scale
    | 'x integer!
    | 'y integer! 
    | integer! 
    ]
| 'translate [
    pair!             ;Similar to scale
    | 'x integer!
    | 'y integer!
    | integer!
    ]
]]

E.g. console defaults [bounding-box large fill-pen red]

About

Suite of in-console tools

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages