Re: [go-nuts] iconvg: a compact, binary format for simple vector graphics

2016-11-05 Thread Nigel Tao
On Tue, Oct 25, 2016 at 9:30 PM, roger peppe wrote: > Would there be some advantage in making the Rasterizer > types in shiny/iconvg and image/vector somewhat more > uniform in the types they use? For example, vector.Rasterizer > seems to use f32.Vec2 pairs everywhere, but iconvg.Rasterizer > uses

Re: [go-nuts] iconvg: a compact, binary format for simple vector graphics

2016-10-27 Thread Pietro Gagliardi
Ah, I see; that also explains the funny "Bogus doctype." message Firefox gives me in the view-source view. > On Oct 27, 2016, at 12:35 PM, roger peppe wrote: > > The URIs without which you can't know which elements and attributes are part of > the SVG spec. > > > On 27 Oct 2016 17:51, "Pietr

Re: [go-nuts] iconvg: a compact, binary format for simple vector graphics

2016-10-27 Thread roger peppe
The wrote: > What part of the document are you referring to? > > On Oct 27, 2016, at 11:42 AM, roger peppe wrote: > > > > On 26 October 2016 at 23:50, Nigel Tao wrote: > >> On Wed, Oct 26, 2016 at 7:20 PM, roger peppe > wrote: > >>> This cannot be understated. A well known tool generates SVGs

Re: [go-nuts] iconvg: a compact, binary format for simple vector graphics

2016-10-27 Thread Pietro Gagliardi
What part of the document are you referring to? > On Oct 27, 2016, at 11:42 AM, roger peppe wrote: > > On 26 October 2016 at 23:50, Nigel Tao wrote: >> On Wed, Oct 26, 2016 at 7:20 PM, roger peppe wrote: >>> This cannot be understated. A well known tool generates SVGs that the >>> Go XML parser

Re: [go-nuts] iconvg: a compact, binary format for simple vector graphics

2016-10-25 Thread Nigel Tao
On Tue, Oct 25, 2016 at 9:30 PM, roger peppe wrote: > Would there be some advantage in making the Rasterizer > types in shiny/iconvg and image/vector somewhat more > uniform in the types they use? For example, vector.Rasterizer > seems to use f32.Vec2 pairs everywhere, but iconvg.Rasterizer > uses

Re: [go-nuts] iconvg: a compact, binary format for simple vector graphics

2016-10-25 Thread roger peppe
This looks really cool, thanks! Would there be some advantage in making the Rasterizer types in shiny/iconvg and image/vector somewhat more uniform in the types they use? For example, vector.Rasterizer seems to use f32.Vec2 pairs everywhere, but iconvg.Rasterizer uses individual x, y arguments. H

Re: [go-nuts] iconvg: a compact, binary format for simple vector graphics

2016-10-25 Thread Nigel Tao
On Tue, Oct 25, 2016 at 2:13 AM, Pietro Gagliardi wrote: > I wonder if there's a way to simulate elliptical gradients with only circular > gradients and affine transformations, so package ui can also render these > files directly using the system native vector graphics APIs. I'd expect that you

Re: [go-nuts] iconvg: a compact, binary format for simple vector graphics

2016-10-24 Thread Pietro Gagliardi
I wonder if there's a way to simulate elliptical gradients with only circular gradients and affine transformations, so package ui can also render these files directly using the system native vector graphics APIs. Does this also require the cairo/Quartz feature of having a circular gradient have

[go-nuts] iconvg: a compact, binary format for simple vector graphics

2016-10-23 Thread Nigel Tao
I was looking for a compact, binary format for simple vector graphics. I didn't find one that did all I wanted. SVG is the de facto standard for vector graphics, in the open source world. Unfortunately, https://www.w3.org/TR/SVG/single-page.html prints as 400 pages, not including the XML, CSS or X