Commit graph

107 commits

Author SHA1 Message Date
Thomas Friedel
82290ace4a removed some dead code; small code improvements 2020-02-20 12:15:15 +01:00
Thomas Friedel
55572c59da added performance setting for image cache size 2020-02-14 16:30:40 +01:00
Thomas Friedel
259bb9e598 fixed Arc and ArcTo scaling 2020-02-11 11:10:53 +01:00
Thomas Friedel
aa059cfcf3 more image pattern fixes 2019-05-02 12:42:23 +02:00
Thomas Friedel
f89b3eccdc implemented imapge pattern repeat types 2019-04-25 17:58:21 +02:00
Thomas Friedel
ff4c73b6b7 fixed a transformation issue 2019-04-17 16:11:25 +02:00
Thomas Friedel
857e6c4e47 IsPointInStroke implemented 2019-04-17 11:31:53 +02:00
Thomas Friedel
7c4521b227 added a function to check if a point is in a path 2019-04-10 11:59:26 +02:00
Thomas Friedel
b2502f5472 simplified matrix type 2019-03-30 11:08:49 +01:00
Thomas Friedel
0e16a8261b added function to create an image pattern 2019-03-28 11:25:59 +01:00
Thomas Friedel
22c3c25d8e removed opaque and deleted flags from backend, deleted state is now maintained in frontend 2019-02-27 16:06:41 +01:00
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