Hi Brian - this looks interesting.
However, I quickly get an error:
yaw 90 180 270
caught error in sys_timer_z_
|domain error: chkgl2
| gl_paint''
createTurtle 6 6 0,10 0 0,:0 _10 0 NB. notice:0 1 2 result
|domain error: chkgl2
| gl_paint''
dbr 0
dbr
13!:0
dbr 1
yaw 90 180 270
caught error in sys_timer_z_
|length error: rotation
| orientations=:orientations x}~(x{orientations)qnmul axis rotation-y
It does display a graphics window with some text and a cluster of little
pyramidal shapes.
I tried turning on the debugger but the error does not appear to leave the
function suspended.
Any idea what I may have done wrong? I'm using J 9.02 in the Qt window.
Thanks,
Devon
On Wed, May 19, 2021 at 6:03 PM Brian Schott <[email protected]> wrote:
> tgsjo is a script for jQt patterned after
> the graphical aspects of the Logo programming
> language. Turtles exist in a 3d environment
> projected onto a 2d canvas.
>
> tgsjo is available at https://github.com/zerowords/tgsjo .
> However that link is not needed because the following
> command in jconsole or jqt puts the tgsjo scripts
> directly into your addons directory.
>
> install'github:zerowords/tgsjo'
>
> After that install, a Lab *tgsjo.ijt* can be run with
> the following 2 commands in jqt.
>
> load'labs/labs'
> lab_jlab_ jpath'~addons/zerowords/tgsjo/tgsjo.ijt'
>
> Without Raul's exceptional contributions tgsjo would
> never have been created. Raul not only explained and
> implemented much of the openGL, but contributed the
> quaternion code for controlling turtle movement.
> Raul is also the creator of the mechanism that
> makes it possible to slow down the graphics when
> multiple turtle actions are programmed.
> I believe Bill Lam contributed the code to link
> J and openGL.
>
> Lots more can be done.
>
> --
> (B=)
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
--
Devon McCormick, CFA
Quantitative Consultant
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm