I think someone did a 3D version in APL quite a while ago but I have no
idea where it may have gotten to.

On Thu, Feb 18, 2021 at 12:19 PM Ian Clark <earthspo...@gmail.com> wrote:

> @ Devon
> A hexagonal grid for game of Life sounds really fascinating! Even though
> it's been tried (and works fine):
> https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life#Variations
> Unfortunately the illustration there is a gif, not a svg. Else it might
> have given you a flying start with your hexagonal universe.
>
> …Having said that, there's a hexagonal grid here:
>
> https://en.wikipedia.org/wiki/Euclidean_tilings_by_convex_regular_polygons#/media/File:1-uniform_n1.svg
> …and it looks like there's a row for each hexagon, and they could in
> principle be individually filled (or the rows shuffled using J into 2 or
> more blocks with a different value of "fill:")
>
> Keep us informed. 3D next: close-packed spheres. If you can't make it work
> pleasingly, how about varying the probability of a stochastic breeding
> rule?
>
> After Conway's Game of Life, the Ising Model ought to be interesting in 3D.
>
> Plus I'm feeling the need for a hexagonal variant of viewmat (it's just
> alternately staggered matrix rows after all)!
>
> …and I was just wondering what I was going to do this evening!
>
> Ian
>
> On Thu, 18 Feb 2021 at 16:28, Ian Clark <earthspo...@gmail.com> wrote:
>
> > Yes, I'm sorry. Attachments used not to work – and then I thought I saw
> > evidence that they did.
> >
> > I had actually given the link to its wiki page in my first post, but not
> > the full path:
> >
> https://en.wikipedia.org/wiki/SVG_animation#/media/File:Morphing_SMIL.svg
> >
> > On Thu, 18 Feb 2021 at 15:24, Hauke Rehr <hauke.r...@uni-jena.de> wrote:
> >
> >> the attachment didn’t make it through
> >> I got used to just adding a .txt extension
> >> and it usually works with non-binary stuff
> >> (or at least txt-like mime types)
> >> I even managed to get pdfs through that way,
> >> iirc.
> >>
> >> Am 18.02.21 um 16:15 schrieb Ian Clark:
> >> > Glad to find enthusiasts for SVG – I thought mine was a minority
> >> interest.
> >> >
> >> > And thanks Bill for letting me know there's a dedicated SVG widget:
> >> svgview.
> >> > Long time since I played with isigraph/isidraw. I recall a html widget
> >> in
> >> > Qt, of limited capability, and didn't expect it to handle SVG too. But
> >> > webview, I see, is what addon 'debug/jig' actually uses to display a
> >> SVG,
> >> > which it builds from the ground up.
> >> >
> >> > One big advantage of SVG is there's so much sample code, all nicely
> >> > catalogued. All SVG pics used in Wikipedia are listed here:
> >> > https://commons.wikimedia.org/wiki/Category:SVG_by_subject
> >> >
> >> > Also most laser-cutting services accept SVG as the customer's spec.
> >> > Inkscape seems to be the tool of choice, because AFAICT SVG is its
> >> native
> >> > format. So laser-cutting templates promise to be a good source of
> simple
> >> > clip-art for hacking.
> >> >
> >> > Bob writes
> >> >> Inkscape is not bad although the SVG's produced are not always
> optimal
> >> > (but much quicker to develop than building by hand).
> >> >
> >> > Inkscape has the worst UX I've ever come across in popular freeware,
> but
> >> > dedicated hacks get used to anything. One big feature that blinds me
> to
> >> its
> >> > failings is its ability to vectorize a (monochrome) photo, as bitmap
> or
> >> > jpeg say, into a SVG of little closed bezier curves – and to
> >> progessively
> >> > coarsen the picture. Some pretty inventive minimalist cartoons can be
> >> > produced this way, because this gives you self-adjusting pixels of
> >> > arbitrary shape. In the same way it will progressively smooth a
> >> hand-drawn
> >> > curve, taking curve-fitting to a whole new level.
> >> >
> >> > I dabbled with this a decade ago, aiming to animate mathematical
> models
> >> for
> >> > educational purposes, and to get pleasing flexible graphics with the
> >> least
> >> > effort. I was led to it from book cover design, in which SVG has a big
> >> part
> >> > to play. Here's my fav SVG from Wikipedia showing the technique's
> power
> >> > (attached). To view the XML contents, edit the .svg (in jqt). To
> display
> >> > it, drop it onto your web-browser.
> >> >
> >> > All this reminds me of the illustrators' saying that if it works as a
> >> > tattoo, it will work as a Kindle illustration. (Now there's another
> >> fund of
> >> > clip-art for manageable SVGs: tats!)
> >> >
> >> > HTML5 is another human-readable format with a lot in common with SVG
> (in
> >> > principle). But I fancy there are far fewer code-samples available
> free
> >> on
> >> > the web, with an unknowable number of websites actually using it. So
> it
> >> > looks like I'd have to slog through the manual to get anything done: a
> >> > ball-and-chain to creative use.
> >> >
> >> > But if anyone knows better, and can point me to a fund of free HTML5
> >> > samples, do let me know. I'd like a reason to spend time on HTML5.
> >> > Rotatable 3D images would be an inducement – but then I'd certainly
> >> want a
> >> > library of 3D images to hack. Planes, spaceships, land vehicles,
> >> geography:
> >> > forget the witchy fantasy figures.
> >> >
> >> > Ian Clark
> >> >
> >> > On Wed, 17 Feb 2021 at 23:28, 'robert therriault' via Programming <
> >> > programm...@jsoftware.com> wrote:
> >> >
> >> >> The Jig debug addon is based on SVG and I think that the results look
> >> >> pretty good, if I do say so myself. Jig is presented in a webview
> >> container
> >> >> in jqt.
> >> >>
> >> >> JHS is very compatible with SVG because it is already browser based.
> As
> >> >> Ian points out, SVG is compact and readable.
> >> >>
> >> >> Inkscape is not bad although the SVG's produced are not always
> optimal
> >> >> (but much quicker to develop than building by hand).
> >> >>
> >> >> Cheers, bob
> >> >>
> >> >>> On Feb 17, 2021, at 15:02, Ian Clark <earthspo...@gmail.com> wrote:
> >> >>>
> >> >>> (IMHO) jgl2 is clunky and hard to debug, as bad as turtle graphics,
> >> and
> >> >> the
> >> >>> results look like "business graphics" from the 1980s.
> >> >>> Probably better to use the *plot* addon instead, which is
> >> well-integrated
> >> >>> with J and has a similar feel to it when you use it at the pd level,
> >> but
> >> >>> not so clunky and low-level.
> >> >>>
> >> >>> Don't overlook the humble SVG format (file ext: .svg). It's
> supported
> >> by
> >> >>> all the main browsers, and doesn't need any special add-ons. The
> >> results
> >> >>> typically look richer and more professional than jgl2 (for the same
> >> time
> >> >>> spent).
> >> >>> Sadly though, it doesn't seem to be supported by
> Qt/isidraw/isigraph.
> >> >>> It's an XML file format, which means it's human-readable text which
> >> can
> >> >> be
> >> >>> massaged in J as a byte string using rplc.
> >> >>> It's not that hard to read and edit by hand, either, and there are
> >> plenty
> >> >>> of samples on the web to raid. Many of them are surprisingly brief,
> >> >>> considering what they do.
> >> >>>
> >> >>> Suggest you get started with the sample pics in
> >> >>> https://en.wikipedia.org/wiki/SVG_animation
> >> >>> which lets you build up a recipe book of handy shapes. Alternatively
> >> use
> >> >>> *Inkscape* (freeware from www.inkscape.org) to generate a prototype
> >> >>> picture, and customize it using J to text-process the XML – mostly a
> >> >> matter
> >> >>> of substituting numerals. You can make respectable animations in
> SVG.
> >> >>>
> >> >>> Ian
> >> >>>
> >> >>> On Wed, 17 Feb 2021 at 07:10, Raoul Schorer <
> raoul.scho...@gmail.com>
> >> >> wrote:
> >> >>>
> >> >>>> There is also graphics/fvj4 with the companion books, depending on
> >> what
> >> >>>> you're doing.
> >> >>>>
> >> >>>> Le mer. 17 févr. 2021 à 00:30, bill lam <bbill....@gmail.com> a
> >> écrit :
> >> >>>>
> >> >>>>> there is an addon demos/isigraph.
> >> >>>>> and IIRC there is also a lab for it.
> >> >>>>>
> >> >>>>> On Wed, Feb 17, 2021, 6:49 AM Devon McCormick <devon...@gmail.com
> >
> >> >>>> wrote:
> >> >>>>>
> >> >>>>>> Thanks!  This is exactly what I was looking for.  I vaguely
> >> remembered
> >> >>>>> the
> >> >>>>>> isigraph package but could not find documentation on the
> Jsoftware
> >> >>>> site.
> >> >>>>>>
> >> >>>>>> On Tue, Feb 16, 2021 at 5:39 PM Michal Wallace <
> >> >>>> michal.wall...@gmail.com
> >> >>>>>>
> >> >>>>>> wrote:
> >> >>>>>>
> >> >>>>>>> you can use an isidraw / isigraph component to draw arbitrary
> >> lines,
> >> >>>>>>> curves, etc.
> >> >>>>>>> Here's an example to get you started:
> >> >>>>>>>
> >> >>>>>>>
> >> >>>>>>>
> >> >>>>>>
> >> >>>>>
> >> >>>>
> >> >>
> >>
> https://code.jsoftware.com/wiki/Guides/Window_Driver/Animation/Animated_JGL2
> >> >>>>>>>
> >> >>>>>>> and the drawing commands:
> >> >>>>>>>
> >> >>>>>>>
> >> >>>>>>
> >> >>>>>
> >> >>>>
> >> >>
> >>
> https://code.jsoftware.com/wiki/Guides/Window_Driver/gl2_Command_Reference
> >> >>>>>>>
> >> >>>>>>>
> >> >>>>>>> On Tue, Feb 16, 2021 at 5:21 PM Devon McCormick <
> >> devon...@gmail.com>
> >> >>>>>>> wrote:
> >> >>>>>>>
> >> >>>>>>>> Is there anything in J to allow me to draw arbitrary pictures?
> >> I'm
> >> >>>>>>> looking
> >> >>>>>>>> for something that has commands to draw a line and fill a
> defined
> >> >>>>> area
> >> >>>>>>> with
> >> >>>>>>>> a color.  I have also considered possibly using Jsh and
> >> Javascript
> >> >>>> or
> >> >>>>>>> HTML5
> >> >>>>>>>> but would prefer something where I could work in J and have
> basic
> >> >>>>>> drawing
> >> >>>>>>>> primitives defined.
> >> >>>>>>>>
> >> >>>>>>>> Thanks,
> >> >>>>>>>>
> >> >>>>>>>> --
> >> >>>>>>>>
> >> >>>>>>>> Devon McCormick, CFA
> >> >>>>>>>>
> >> >>>>>>>> Quantitative Consultant
> >> >>>>>>>>
> >> >>>>>
> >> ----------------------------------------------------------------------
> >> >>>>>>>> For information about J forums see
> >> >>>>> http://www.jsoftware.com/forums.htm
> >> >>>>>>>>
> >> >>>>>>>
> >> >>>>
> >> ----------------------------------------------------------------------
> >> >>>>>>> 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
> >> >>>>>>
> >> >>>>>
> >> ----------------------------------------------------------------------
> >> >>>>> For information about J forums see
> >> http://www.jsoftware.com/forums.htm
> >> >>>>>
> >> >>>>
> >> ----------------------------------------------------------------------
> >> >>>> For information about J forums see
> >> http://www.jsoftware.com/forums.htm
> >> >>>>
> >> >>>
> ----------------------------------------------------------------------
> >> >>> For information about J forums see
> >> http://www.jsoftware.com/forums.htm
> >> >>
> >> >>
> ----------------------------------------------------------------------
> >> >> For information about J forums see
> http://www.jsoftware.com/forums.htm
> >> >>
> >> > ----------------------------------------------------------------------
> >> > For information about J forums see
> http://www.jsoftware.com/forums.htm
> >> >
> >>
> >> --
> >> ----------------------
> >> mail written using NEO
> >> neo-layout.org
> >>
> >> ----------------------------------------------------------------------
> >> For information about J forums see http://www.jsoftware.com/forums.htm
> >>
> >
> ----------------------------------------------------------------------
> 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

Reply via email to