Recent activity

Re: [PATCH v3] op/clip: implement arc path a day ago

From Anthony Starks to ~eliasnaur/gio-patches

Re: SVG API -- I'm not a fan either, but it has the advantage of familiarity.
Re: Arcs like the existing Loader (older version), see:


Re: Use cases for arc: (both circular and elliptical)

1) making a stroked arc
2) making a "wedge" shape (as seen in pie charts)

the elements are for making the arc:

1) center point
2) width, height

giocanvas/chart 22 days ago

From Anthony Starks to ~eliasnaur/gio

The giocanvas package now includes a charting package,
giocanvas/chart.  It supports line, area, scatter, and bar charts,
with titles and configurable axes.

The package reads data into a ChartBox structure (name, value pairs
(tab-separated) with metadata).

type ChartBox struct {
    Title                    string
    Data                     []NameValue
    Color                    color.RGBA
    Top, Bottom, Left, Right float64
    Minvalue, Maxvalue       float64
    Zerobased                bool

Re: op/path: draw-arc ? 27 days ago

From Anthony Starks to ~eliasnaur/gio

Note that giocanvas has buggy, incomplete version Arc code (see the
method AbsArc).  Fixes welcomed.

Re: Canvas 2D API Notes a month ago

From Anthony Starks to ~eliasnaur/gio

Thanks for the kind words.   FYI, the code that made the screen in the
README is at https://github.com/ajstarks/giocanvas/blob/master/play/main.go

On Thu, Jun 4, 2020 at 6:48 PM <dolanor@evereska.org> wrote:
> > After two weeks, here is the progress to date:
> > https://github.com/ajstarks/giocanvas
> I haven't looked at the API yet. But just the result in the README makes me wanna play with it already.
> Great job!
> I have worked on an SVG project for 3 months end of 2019, but it was on C#. So, this tickles my curiosity!

Re: Contribution?: General transforms (Affine 2D) a month ago

From Anthony Starks to ~eliasnaur/gio

+1 on this proposal.

On Thu, Jun 4, 2020 at 3:07 PM Viktor Ogeman <viktor.ogeman@gmail.com> wrote:
> Hi,
> I am in need of transforms that include scaling, and find a TODO in the src
> showing that this is on the table. If there is interest I would be
> willing to try
> to send a first patch implementing this.
> Before I begin though it would be good to get clarification on a few items:
> 1. Still interest in getting this implemented?

Re: Canvas 2D API Notes a month ago

From Anthony Starks to ~eliasnaur/gio

After two weeks, here is the progress to date:

Canvas 2D API Notes a month ago

From Anthony Starks to ~eliasnaur/gio

As discussed in the May community call, here are my notes on a general
canvas-like 2D API

# Notes on a general 2D API

## Introduction and Motivation

The principle is to keep the number of methods small and consistent,
using a common set of arguments for
location (x, y), and dimensions (w, h).

## Coordinate System

The coordinate system follows the traditional convention you learned in school:

Re: Shape Module 5 months ago

From Anthony Starks to ~eliasnaur/gio

Perhaps you can consider:
* adding Ellipse, which Circle can be a variation of).
* Adding Square which can be a variation of Rectangle
* Refactoring Triangle to the more general Polygon

On Sat, Jan 18, 2020 at 4:19 PM Werner Laurensse <werner@alman.ax> wrote:
> Hello Everyone
> I've found the time to put my shape api into a separate module.
> It should be a high level api to draw simple shapes.
> The calculations are still a bit off in some cases,

Re: Drawing primitives and op.ImageOp 6 months ago

From Anthony Starks to ~eliasnaur/gio

On Tue Jan 7, 2020 at 3:26 PM, Werner Laurensse wrote:
> FYI, I've been working on a simple vector drawing module as part of my
> foxtrot project.
> It's still a work in progress and currently only supports drawing lines.
> When it is done, and I am happy with the API, I can prepare a path to
> add it to gio if you like.

I have dreamed of a high-level text/image/vector API for in gio.
Some suggestions on the API:

The coordinate system is based on percentage (0-100) of the underlying
canvas, and attributes  like colors are named as strings ("black" or
"rgb(127,0,0)").  Opacity is specified as a variadic argument also
expressed as a percentage from (0 - invisible to 100 - fully opaque).

[PATCH] app/hello: clarifying updates 1 year, 3 months ago

From Anthony Starks to ~eliasnaur/gio

Signed-off-by: Anthony Starks <ajstarks@gmail.com>

 apps/hello/hello.go | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/apps/hello/hello.go b/apps/hello/hello.go
index 574e19d..89fabb0 100644
--- a/apps/hello/hello.go
+++ b/apps/hello/hello.go
@@ -20,8 +20,8 @@ import (

 func main() {