Commit graph

151 commits

Author SHA1 Message Date
Richard Davey
c873679d97 Added hsv values, setFromHSV, udpateHSV, darken, lighten, brighten, saturate and desature methods. 2018-09-10 11:29:28 +01:00
Richard Davey
fccd58b097 The HSVToRGB function can now take an optional out argument, which is either a HSVColorObject or a Color object, and the results will be set into that object instead of creating a new one. 2018-09-10 11:22:04 +01:00
Richard Davey
664d5efc7b The RGBToHSV function can now take an optional out argument, which is either a HSVColorObject or a Color object, and the results will be set into that object instead of creating a new one. 2018-09-10 11:21:36 +01:00
Andre Hofmeister
68900651bf Fixed an issue where module exports are not named correct for CanvasInterpolation and CanvasPool #3946. 2018-08-18 13:30:16 +02:00
Richard Davey
96509e4ca4 Tidying p 2018-08-02 17:59:11 +01:00
Richard Davey
17653fcf7d BitmapMask.destroy will now remove the textures and framebuffers that it created from the WebGL Renderer as part of the destroy process. Fix #3771 2018-07-09 14:26:45 +01:00
Richard Davey
63ae8a5728 Swapped to gl.KEEP for further testing 2018-07-08 22:44:55 +01:00
Richard Davey
7aa46657c2 Tidying up jsdocs and changing float to number 2018-06-26 23:19:14 +01:00
Richard Davey
15b544fc46 jsdoc fixes 2018-06-13 08:37:40 +01:00
Richard Davey
29aec01b6f Bumping to 3.7.0 2018-05-04 18:51:02 +01:00
Richard Davey
8f2c13f4c8 CanvasPool has a new argument selfParent which allows the canvas itself to be the parent key, used for later removal. 2018-04-23 23:39:12 +01:00
Richard Davey
ced2d34b34 BitmapMask and GeometryMask both have new destroy methods which clear their references, freeing them for gc. 2018-04-23 00:13:04 +01:00
Richard Davey
d3d21976d3 lint fix 2018-04-17 15:59:57 +01:00
Richard Davey
549976134d Only return 2d context 2018-04-17 15:24:07 +01:00
Richard Davey
3f722ba34a Fixed color namespace 2018-04-16 15:25:29 +01:00
Richard Davey
c7037628e2 Fixed lint error 2018-04-09 13:48:11 +01:00
Matt Chiasson
abfd2440a0
fixed travis failure 2018-04-08 21:01:48 -04:00
Matt Chiasson
5f7d3fa4a1
closes #3520
Phaser.Display.Canvas.CanvasPool.first now returns the available pool item instead of always returning null.
2018-04-07 17:51:51 -04:00
Felipe Alfonso
c232642a52 Parent matrix is applied to canvas context on each draw function 2018-04-04 14:05:59 -03:00
jdotrjs
562402e440 [fixes #3482] HueToComponent was not correctly exporting itself
Pretty self explanatory -- `module.export` is a typo, needed to be `exports`. Filed associated bug #3482.
2018-03-30 16:25:59 -07:00
orblazer
b1d83188ef Add generic type and fix types on Data and Display 2018-03-27 14:19:42 +02:00
orblazer
ed1f2a7011 Fix wrong types 2018-03-22 13:51:30 +01:00
orblazer
7fba122321 Fix "any" types 2018-03-20 17:15:49 +01:00
orblazer
37b6fc5862 Fix many multiple types 2018-03-20 15:58:02 +01:00
orblazer
4cff464555 Fix nullable types 2018-03-20 15:36:03 +01:00
orblazer
94d92910cb Update JSDoc on Display (object types) 2018-03-19 16:22:51 +01:00
Richard Davey
876911fd32 Fixed var error 2018-03-19 13:50:23 +00:00
Richard Davey
620bcc6ae5 jsdoc fixes and additions 2018-03-19 13:45:00 +00:00
Richard Davey
a78651ab12 Removed un-used properties and fixed jsdoc types 2018-03-19 13:33:02 +00:00
orblazer
fa63a9090a Update JSDoc on Display 2018-03-19 14:03:41 +01:00
Richard Davey
3b8da57008 jsdoc fixes 2018-03-16 17:38:15 +00:00
Richard Davey
a524dc44b0 Expose constants. Fix #3387 2018-03-16 13:29:30 +00:00
Richard Davey
33cbb067b4 Phaser.Display.Color.Interpolate would return NaN values because it was loading the wrong Linear function. Fix #3372 2018-03-12 13:41:09 +00:00
Richard Davey
edf1aa7cc1 The onContextRestored callback won't be defined any more unless the WebGL Renderer is in use in the following objects: BitmapMask, Static Tilemap, TileSprite and Text. This should allow those objects to now work in HEADLESS mode. Fix #3368 2018-03-12 13:37:13 +00:00
Felipe Alfonso
9dbb4db4c6 Added inverted alpha to bitmap mask 2018-02-23 14:09:27 -03:00
Richard Davey
50dac412be eslint fixes and console removal 2018-02-16 19:08:50 +00:00
Richard Davey
86f00eeb52 eslint fixes 2018-02-16 18:17:51 +00:00
Richard Davey
ae3cd50356 Fixed jsdocs 2018-02-12 21:39:26 +00:00
Richard Davey
08a968f5ec Added jsdocs 2018-02-12 21:15:15 +00:00
Richard Davey
d1f5f8a82b Added jsdocs 2018-02-12 16:01:21 +00:00
Richard Davey
40689d1e35 Updated jsdocs. 2018-02-07 15:27:21 +00:00
Richard Davey
2a86400a28 Added in jsdocs 2018-01-31 13:54:44 +00:00
Richard Davey
00382bf059 Added jsdocs. 2018-01-26 02:20:33 +00:00
Richard Davey
c168daee3f Added jsdocs. 2018-01-26 00:37:58 +00:00
Felipe Alfonso
d4f0d02745 Merge branch 'master' into rendering-cleanup 2018-01-25 15:45:15 -03:00
Felipe Alfonso
ba280c7517 BitmapMask and GeometryMask are rendering correctly 2018-01-25 15:43:19 -03:00
Richard Davey
8b8601b464 Working through color docs 2018-01-25 17:29:17 +00:00
Richard Davey
1304eab7db Added jsdocs 2018-01-25 15:48:41 +00:00
Richard Davey
b415a19c71 Moved pixel blend modes 2018-01-25 15:48:33 +00:00
Richard Davey
cd0388a8bb Added jsdocs 2018-01-25 14:55:31 +00:00
Richard Davey
d8f1ba03e9 Moved repository location 2018-01-09 21:43:56 +00:00