Commit Graph

16 Commits

Author SHA1 Message Date
Ray J. Greenwell 829818ded4 Improve Colorization slightly.
Colorizations are not cached, and the root color values are recomputed
every time. We can share those.
Also added an accessor to read the already computed HSV values out
of a Colorization. I suppose I could just make it a public field
or return the array directly. The rootColor variable is already public.
DFU. But now the array will be shared by every instance from the same
classRecord, so it seems more important to make sure nothing goes wrong.
2018-10-15 10:18:44 -07:00
Ray J. Greenwell 145660bf0c Color.HSBtoRGB() will wrap hue for us.
It is documented that hue = hue - (float)Math.floor(hue);
It's pointless for us to check if it's over 1f.
2018-07-18 12:05:17 -07:00
Michael Bayne 084da3c549 Tick sprite in char sprite viz. 2017-08-19 07:54:55 -07:00
Michael Bayne 2197292581 Share the OpenAL context if one is already created. 2017-07-18 19:48:26 -07:00
Michael Bayne f2eaa55c35 Javadoc fixes. 2015-03-14 09:43:11 -07:00
Michael Bayne ebc91c015f Added a little test of the JSON writer.
I'm also using this test to do the conversions I need, since I just need our
two test scenes in JSON format.
2013-01-23 15:40:09 -08:00
David Hoover c0cb0ffcfd Header update.
Point to where things live on github these days.
2012-11-01 11:30:44 -07:00
Ray J. Greenwell ee9a81512f Fix deprecation warning with move to new samskivert library. 2012-10-02 17:48:01 -07:00
Nathan Curtis d2dedd8e65 Another spot where a safer comparison is called for. 2012-08-16 11:47:38 -07:00
Nathan Curtis 5a1cc88744 Use a safe comparison instead of simple subtraction.
Vilya's ScoreAnimation sets its render order to Integer.MAX_VALUE; using this comparison method gets
the AbstractMediaManager's _media out of order when such values are used.
2012-08-07 17:43:41 -07:00
Ray J. Greenwell a1d60a685b Use File.separatorChar where it makes sense. 2012-03-30 11:12:50 -07:00
Ray J. Greenwell c7e80de26d Revert "Revert "Code formatting and method rearrangement.""
This reverts commit cc0c9c4e3e.
I'm reverting the reverting. I wanted these changes, just not
all that other -whateverthefuck- that piggybacked in.
2012-03-30 11:08:36 -07:00
Ray J. Greenwell cc0c9c4e3e Revert "Code formatting and method rearrangement."
This reverts commit 6f9daf6c97.
2012-03-30 11:06:13 -07:00
Ray J. Greenwell 7c182066ea Merge branch 'master' of github.com:threerings/nenya 2012-03-30 11:01:29 -07:00
Michael Bayne 09b907c3f4 Reheadered, minus (svn-only) $Id$. 2012-02-27 12:16:26 -08:00
Michael Bayne 5e2380eb24 Split Nenya into proper Maven submodules (same treatment Narya got). 2012-02-27 12:15:12 -08:00