Commit graph

96 commits

Author SHA1 Message Date
Thomas Friedel
9c3cccabdd offscreen backend now has its own type, can be used as image when drawing images 2019-02-27 13:05:23 +01:00
Thomas Friedel
a36c635367 renamed the gradient creation methods; removed SetLineEnd function 2019-02-22 16:56:27 +01:00
Thomas Friedel
816582dbb3 removed FillMatrix and moved transformations to frontend 2019-02-22 16:53:53 +01:00
Thomas Friedel
8dc91b34f5 moved offscreen canvas to backend 2019-02-22 16:39:30 +01:00
Thomas Friedel
fe9d6e60e4 moved clipping to backend 2019-02-22 16:39:30 +01:00
Thomas Friedel
e17505b056 removed gl code that is no longer needed in frontend 2019-02-22 16:39:30 +01:00
Thomas Friedel
e7d0b1a7ee text shadow rendering moved to backend 2019-02-22 16:39:30 +01:00
Thomas Friedel
ac9a395c05 removed some dead code 2019-02-22 16:39:30 +01:00
Thomas Friedel
c5c13de2a4 moved gradients to backend 2019-02-22 16:39:30 +01:00
Thomas Friedel
a354e192b6 image pattern support in backend 2019-02-22 16:39:18 +01:00
Thomas Friedel
476dbac6e2 moved image loading and drawing into backend 2019-02-22 16:39:18 +01:00
Thomas Friedel
7cef867541 moved backend interface to canvas.go 2019-02-22 16:38:27 +01:00
Thomas Friedel
c28c50a22e added a blurred fill style in backend, used it for blurred shadow drawing 2019-02-22 16:38:27 +01:00
Thomas Friedel
c5c8ac500f some shadow drawing now works using the backend 2019-02-22 16:38:27 +01:00
Thomas Friedel
359b52f473 more general backend fill function 2019-02-22 16:38:27 +01:00
Thomas Friedel
114b292be7 moved some more gl code into the backend 2019-02-22 16:38:27 +01:00
Thomas Friedel
7dbcd9b420 made DrawStyle public for use by backends; changed color to be color.RGBA 2019-02-22 16:38:27 +01:00
Thomas Friedel
1e5180dd65 started work on moving all the gl code into a backend package so that other backends can be created 2019-02-22 16:38:27 +01:00
Thomas Friedel
6091afb755 added some tests; improved gradient and image pattern transformations 2019-02-22 16:37:48 +01:00
Thomas Friedel
57348acc02 added an optional alpha channel for offscreen canvas, and a DeleteOffscreen function 2019-02-18 11:29:12 +01:00
Thomas Friedel
c1f855278d undid some of the changes from the last update since it didn't work properly; added some tests 2019-01-25 13:16:48 +01:00
Thomas Friedel
99b9763f00 added some nonstandard performance flags 2019-01-23 18:11:41 +01:00
Thomas Friedel
bb244c4868 separated out a Path2D type 2019-01-23 17:23:47 +01:00
Thomas Friedel
7565296c42 removed the SetSize method 2019-01-16 10:31:45 +01:00
Thomas Friedel
908e88d374 added textBaseline 2019-01-11 10:40:41 +01:00
Thomas Friedel
cb3e694671 changed path to a struct 2018-11-13 12:28:22 +01:00
Thomas Friedel
7297427a70 fixed a bug with offscreen rendering 2018-11-01 17:31:36 +01:00
Thomas Friedel
a01a6799f1 reduced the maximum shadow blur size to avoid running into some gpu limitations for now 2018-10-31 12:39:14 +01:00
Thomas Friedel
6f74599567 added an offscreen canvas 2018-10-31 12:30:39 +01:00
Thomas Friedel
be6d1db04f fixed that restoring after calling clip didn't always restore properly 2018-10-27 15:02:17 +02:00
Thomas Friedel
091db17ac0 DrawImage can now take image.Image values; added error messages if the automatic image and font loading doesn't work 2018-10-06 18:20:20 +02:00
Thomas Friedel
b73d093683 implemented line dash offset 2018-09-18 15:17:04 +02:00
Thomas Friedel
3d82ce6998 completed the gl implementations 2018-09-18 15:00:50 +02:00
Thomas Friedel
34c01f47d4 added checks that LoadGL is called before anything else is done 2018-09-18 14:20:08 +02:00
Thomas Friedel
56995ff396 line dash is now only applied when calling stroke 2018-09-01 16:42:07 +02:00
Thomas Friedel
b6c22b9374 line dash bugfix, implemented getLineDash, added a test 2018-07-30 14:56:19 +02:00
Thomas Friedel
afad74f7b2 vary the gaussian shader kernel size depending on the blur radius for better performance 2018-07-27 15:58:38 +02:00
Thomas Friedel
f2225e857a implemented shadowBlur (wip) 2018-07-27 14:11:53 +02:00
Thomas Friedel
0cb030619e added a function to switch to an offscreen framebuffer 2018-07-24 12:50:18 +02:00
Thomas Friedel
aabe03b003 added support for miter limit 2018-07-19 18:05:41 +02:00
Thomas Friedel
5da544d78b performance optimization, avoid use of stencil buffer when drawing with opaque styles 2018-07-19 16:59:22 +02:00
Thomas Friedel
6b4af8f29f added support for shadows (not yet blurred) 2018-06-14 15:03:25 +02:00
Thomas Friedel
1cd53a4e6b added a SetBounds function to replace the SetSize function 2018-05-28 16:04:13 +02:00
Thomas Friedel
447d83e9f0 bugfix, gradient textures were still incorrectly set as 1D textures 2018-05-28 16:01:35 +02:00
Thomas Friedel
0efc4c6d59 line widths now work more like the html5 canvas 2018-05-17 16:24:46 +02:00
Thomas Friedel
50941d3075 clear stencil buffer on activate 2018-05-17 15:08:22 +02:00
Thomas Friedel
87fa8256eb added an iOS GL implementation and example 2018-05-15 18:49:35 +02:00
Thomas Friedel
62eb6793c7 updated doc 2018-05-08 20:58:34 +02:00
Thomas Friedel
baa8b6aed5 more docs 2018-04-30 16:34:50 +02:00
Thomas Friedel
5bd0ccce2e updated docs 2018-04-30 16:30:19 +02:00