[go-nuts] Re: why is this not ascending?

2019-05-01 Thread Steven Wiley
This one is ascending. Please note the modification of line 20: https://play.golang.org/p/qB8jCyVAJc9 The reason the first one is not is that you start the two threads virtually at the same time, so when they come up for execution, they are neck and neck and timing probably depends on the hard

Re: [go-nuts] Re: Is it possible to simplify this snippet?

2019-05-01 Thread Steven Wiley
Two slightly different version for what is is worth (not much): checkKey:=func(k int) int { if rl.IsKeyDown(k) { return 1 } return 0 } p.Rect.X+=-checkKey(rl.KeyA)+checkKey(rl.KeyD) p.Rect.Y+=-checkKey(rl.KeyW)+checkKey(,rl.KeyS) or checkKey:=func(m,p int) (i int) { if rl.IsKeyDown(

Re: [go-nuts] Generics: an unwelcome conclusion and a proposal

2018-11-05 Thread Steven Wiley
Hi all, There appear to be a lot of different paths to take as far as generics and templates go (pun intended). Many of you I am sure have more experience and have thought deeper about contracts and templates than I ever will. Also, I am sure all experienced users and programmers know the joys

Re: [go-nuts] [ANN] GoKi Trees and GoGi GUI

2018-05-07 Thread Steven Wiley
de optional). Also, I wanted to automatically support >> things like JSON in the same way that a slice or map natively does, so an >> end-user doesn’t have to struggle with all that themselves (and I don’t >> ever have to deal with it again myself :) Anyway, in my estimation, the K

[go-nuts] Re: [ANN] GoKi Trees and GoGi GUI

2018-05-06 Thread Steven Wiley
f these frameworks. > Currently GoGi is focused on desktop systems, but nothing prevents > adaptation to mobile. > > Right now the rendering is based off of a modified version of > https://github.com/fogleman/gg, but I’m very interested in integrating > the new rasterx system

Re: [go-nuts] [ANN] oksvg and rasterx; SVG 2.0 path compliant renderer and rasterizer

2018-04-28 Thread Steven Wiley
Thanks. I just fixed a bug 2 minutes ago that I introduced while refactoring, so you probably want to pull the new version. (Thanks to Anthony Starks for pointing it out.) On Saturday, April 28, 2018 at 1:21:41 PM UTC-7, Daniel Theophanes wrote: > > Thank you for looking into this! This looks gr

Re: [go-nuts] [ANN] oksvg and rasterx; SVG 2.0 path compliant renderer and rasterizer

2018-04-27 Thread Steven Wiley
Hey everyone, I looked into using just the rasterizer package from the "golang.org/x/image/vector" package and tested it vs the rasterizer derived from the freetype package. I will call these the GV and FT rasterizers. One thing with the GV is that it only does non-zero-winding-rule, while the

Re: [go-nuts] [ANN] oksvg and rasterx; SVG 2.0 path compliant renderer and rasterizer

2018-04-23 Thread Steven Wiley
23, 2018 at 3:42:55 PM UTC-7, Nigel Tao wrote: > > Nice! > > > On Mon, Apr 23, 2018 at 3:41 AM, Steven Wiley > wrote: > >> I refactored and enhanced the raster package from the golang >> translation of freetype, <https://github.com/golang/freetype> >&g

Re: [go-nuts] liteide x33.3 released

2018-04-23 Thread Steven Wiley
Thank you! FYI, here is a working link for the first release downloads https://github.com/visualfc/liteide/releases/tag/x33.3 On Sunday, April 22, 2018 at 11:28:18 PM UTC-7, visualfc wrote: > > Hi all. > LiteIDE x33.3 released! > This version support import line jump to package source file, supp

[go-nuts] [ANN] oksvg and rasterx; SVG 2.0 path compliant renderer and rasterizer

2018-04-22 Thread Steven Wiley
Hi all, I needed to write an SVG renderer; something that draws an SVG file onto an image (not to be confused with an SVG generator such as SVGo). I wanted to do this in native go, and not rely on wrapping pre-existing C code. The golang 2D drawing packages I could find were not capable of ren