[Jprogramming] [demo] low level graphics with wd and jgl2 in j803
bill lam
bbill.lam at gmail.com
Fri Dec 5 03:09:11 UTC 2014
Also the rgb sequence of graph (vrgb ) seems to the reverse of
that in current J. eg. 255 is blue in J7/J8. Not sure for J6.
ps.
BRUSHCOLO should ne BRUSHCOLOR
Чт, 04 дек 2014, Michal Wallace написал(а):
> Hey Bill,
>
> Sorry for taking so long to respond to this. My last post was just meant as
> a reference for anyone getting started with graphics, but I guess I should
> have elaborated on the problem that lead me to use the gl* instead of gd*
> commands.
>
> I haven't tracked down what's causing it, but in 803, if you run:
> help > studio > labs > category:graphics > graph utilities
>
> There is an error on step 7:
>
> | domain error: chkgl2
> | glbrush glrgb BRUSHCOLO
>
> It works fine in 802, and I've verified that other users have this problem
> on both windows and android.
>
> -Michal
>
>
> On Wed, Nov 19, 2014 at 4:33 AM, bill lam <bbill.lam at gmail.com> wrote:
>
> > I didn't try your script or know what it was expected to show or
> > what was broken. Perhaps you can clarify.
> >
> > Henry Rich had written some remarks on glrect in jwiki
> >
> >
> > http://www.jsoftware.com/jwiki/Guides/Window%20Driver/gl2%20Command%20Reference
> >
> > May be that can explain your problem. That said, glrect is just
> > a very thin cover function for Qt painter class, so that I
> > believe that is the way of how Qt draws.
> >
> > Ср, 19 ноя 2014, Michal Wallace написал(а):
> > > Some of the docs about graphics are out of date since the move to QT,
> > > and the gdxxx verbs broke (at least for me) in the upgrade to j803/QT5.
> > >
> > > So: I spent some time today putting together a little demo that shows how
> > > to use isigraph to draw to the screen and handle raw keyboard events:
> > >
> > > https://github.com/tangentstorm/tangentlabs/blob/master/j/gltest0.ijs
> > >
> > > It doesn't do anything interesting visually. I just thought someone
> > > else might find it useful and/or teach me the error of my ways. :)
> > >
> > > I also used it to render a bitmapped font I made back in the DOS days:
> > >
> > > http://i.imgur.com/fo4XcqF.png
> > > https://github.com/tangentstorm/tangentlabs/blob/master/j/dosfont.ijs
> > >
> > > I've implemented a bitmapped text display like this in 4 other languages
> > > over the years, and none of them have ever made the job this easy. :)
> > >
> > > -Michal
> > > ----------------------------------------------------------------------
> > > For information about J forums see http://www.jsoftware.com/forums.htm
> >
> > --
> > regards,
> > ====================================================
> > GPG key 1024D/4434BAB3 2008-08-24
> > gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
> > gpg --keyserver subkeys.pgp.net --armor --export 4434BAB3
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
--
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
gpg --keyserver subkeys.pgp.net --armor --export 4434BAB3
More information about the Programming
mailing list