Feature: Swap cairo out for an equivalent Go package
jpillora opened this issue · comments
Not sure what else is out there that will suit your needs though it would be handy if this package was pure Go
It would be great if we could swap in a required DrawLine function that this package would use!
WebGL ????
Using Gin
🤔
Opengl. See gxui and shiny packages
@joeblew99 Isn't gxui unmaintained?
Yes :) shiny is the bright new star.
But its kind of a shame more graphics has not happened with go.
Gomobile has some gkut / opengl windowing too.
Dart and flutter / Fletch has gotten 120 fps. It's a shame go was not given
more attention for front end work.
.
On Tue, 9 Feb 2016, 20:25 RangerMauve notifications@github.com wrote:
@joeblew99 https://github.com/joeblew99 Isn't gxui unmaintained?
—
Reply to this email directly or view it on GitHub
#3 (comment).
I pushed a branch to https://github.com/bpowers/ln/tree/_pure-go that is removes the CGo/cairo dependency. It works pretty well (based on visual comparison of output files) - at least it would point people at where to plug in shiny or something else, and would be great if someone was interested to create some test.Benchmark
s so we could see how performance is impacted.
@bpowers There's a draw2dgl render that could let people use hardware acceleration if they wanted, right?
@bpowers Nice, didn't know about draw2d. I'll look into integrating this change soon.
@RangerMauve yea, I think so. You could probably swap draw2dgl
in place of draw2dimg
here:
bpowers@46986c7#diff-0fdd9eeac92091ea09c88c6e7b5b7065R183
But the function signatures are slightly different, and the gl backend doesn't have a direct ToPng function. Should be doable.
I don't see a need to accelerate this. This isn't a realtime renderer or anything.