1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00
Commit graph

48 commits

Author SHA1 Message Date
Anthony Nicholls
68f7ed4ecc Colour: Prevent an integer alpha value being processed as a float 2025-10-16 16:55:44 +01:00
Tom Poole
94d98a2b10 Update licensing information 2024-04-16 11:39:35 +01:00
Tom Poole
6bf9bb9a2e Add final specifiers in implementation files 2023-10-10 16:12:38 +01:00
Anthony Nicholls
2bb530f636 approximatelyEqual: Add customisable tolerances for floating-point comparisons 2023-08-17 12:47:53 +00:00
reuk
a59cba010b
ColourGradient: Create lookup tables using non-premultiplied colours
The OpenGL renderer uses ColourGradient::createLookupTable to generate
gradient textures. However, the tweening method used was different to
the tweening used by CoreGraphics gradients, and by the software
renderer.

Gradient tweening is now computed using non-premultiplied colours, to
ensure consistency between gradients rendered using OpenGL, and with
other renderers.
2023-02-09 17:54:19 +00:00
Tom Poole
2ec861d99e Update licensing banners to JUCE 7 2022-05-16 17:55:48 +01:00
Tom Poole
dea3fe60e4 Update copyright banners 2022-04-04 12:36:32 +01:00
reuk
6244fc293f
CharacterFunctions: Avoid UB when parsing hex strings 2021-10-25 09:51:20 +01:00
reuk
dcd2ef93f9
Colour: Remove restrictions on argument to brighter() and darker() 2021-06-30 17:03:38 +01:00
reuk
0c56fa8fa0
Colour: Fix comparisons in HSL conversions 2021-06-23 12:09:34 +01:00
reuk
f0c02529ef
Colour: Avoid divisions by zero 2021-06-21 19:05:40 +01:00
ed
f9f83fe3fa Correctly scale saturation value to 0-1 in HSL Colour constructor 2021-02-19 19:07:12 +00:00
reuk
394c4fd475 Clang: Fix warnings when building with clang 10 2020-07-01 10:00:43 +01:00
ed
009d685179 Updated all license headers 2020-06-29 08:30:22 +01:00
ed
00d8910cc5 Fixed hue wrap-around for negative values in HSV/HSL colours 2020-04-30 16:49:32 +01:00
ed
eeff1e6174 Fixed hue wrap-around in HSV/HSL colours, added some more unit tests and added methods to distinguish between HSV and HSL saturation 2020-04-29 12:45:02 +01:00
ed
7553b8dc1b Added HSL support to Colour and use Colour::fromHSL() when parsing SVG HSL colours 2020-04-27 14:26:41 +01:00
Tom Poole
894e7d2bd2 Updated all license headers 2020-04-23 17:30:39 +01:00
reuk
327f817b9b Copyrights: Update commercial/gpl headers to be gpl-only 2020-04-09 15:22:56 +01:00
ed
4a5dda489f Fixed some warnings with -Wconversion enabled 2020-03-17 09:02:57 +00:00
Tom Poole
08d67c763f Made some JUCE classes TriviallyCopyable 2018-07-11 09:17:31 +01:00
jules
eda613c6db Moved all "namespace juce" declarations from module headers to the individual .h and .cpp source files. This makes life a lot easier for Intellisense and other IDE autocompletion tools 2017-09-08 08:59:55 +01:00
tpoole
10b7aa3c16 MinGW: Fixed some build warnings 2017-07-07 11:06:16 +01:00
hogliux
b5afccc37c Updated file headers and the README with the JUCE 5 license 2017-04-27 14:43:04 +01:00
hogliux
c7b8e77031 Update copyright notice 2015-07-22 15:59:34 +01:00
Timur Doumler
be9a2ff1bb Implemented support for Android OpenGL native ARGB pixel format. 2015-05-05 17:44:10 +01:00
jules
fbaf80ced4 Fixed a typo in Colour. 2014-04-08 21:55:56 +01:00
jules
1a75ceb9aa Added method Colour::getPerceivedBrightness() 2014-04-07 22:07:45 +01:00
jules
62aac7d384 Adjusted mapping of float->int colour values (again). 2014-01-07 12:52:12 +00:00
jules
1db908d5cc Accuracy tweak to float->int conversions in the Colour class. 2014-01-06 11:52:42 +00:00
jules
3a47baf9b9 Misc minor string optimisations. 2013-09-11 14:52:28 +01:00
jules
03c2801f3f Copyright header update in all module files. juce_core modules are now ISC licensed. All other modules are GPLv2/3/AGPLv3 2013-06-13 13:17:12 +01:00
jules
31fc78b314 Minor tidying up. 2013-06-04 10:16:25 +01:00
jules
c7506df13f Changed some pass-by-references to pass-by-value to improve compiler optimisation. 2013-05-22 23:05:53 -06:00
jules
14cc8bf3c5 Changed ImageCache purging method. Added a PropertyPanel::getTotalContentHeight() method. 2013-04-15 12:21:22 +01:00
jules
c8e09aba67 Added an extra method to ListenerList. Handled zero-length binary data in var class. 2013-04-14 10:14:24 +01:00
jules
e58b915300 Fixed some COM object ref-counting. 2012-12-18 18:05:36 +00:00
jules
df729be74a Cleaned-up class inheritance visibilities and encapsulation for some internal classes. 2012-07-12 14:10:46 +01:00
jules
3fdc8a22db New colour contrast method. 2012-07-09 21:59:27 +01:00
jules
1f95f54089 Purged some warnings. 2012-04-10 10:29:14 +01:00
jules
295d125142 Stopped using the old BEGIN_JUCE_NAMESPACE macros, and just used hard-coded namespaces where necessary instead. The macro definitions are still there, so this shouldn't affect anyone's code. 2012-02-11 14:09:23 +00:00
jules
4773b388ef AttributedString class and advanced text layout (stage 1) 2011-11-21 20:03:39 +00:00
jules
75ad1071ad OpenGL renderer optimisations. Renamed Colour::fromFloatRGBA. 2011-11-10 17:51:34 +00:00
jules
44a050c1aa Fix for the parameter types of Colour::fromRGBAFloat. Change on iOS to avoid enabling an audio input device unless needed. 2011-11-09 16:53:24 +00:00
jules
07b73e4071 StringArray fix + additional unit tests. AudioFormatManager tweak for iOS. Minor clean-ups. 2011-09-29 14:51:42 +01:00
jules
6b07bfb51b Finally turned off the T wide-char string macro by default. If you've used it in your code, I'd recommend just skimming through and simply removing it. Any ascii strings will work fine without it; any strings containing extended chars are NOT PORTABLE and shouldn't be embedded anyway, but will work just as well if you replace the T with an 'L' prefix (much better to re-encode them as escaped UTF-8 though). If you really must keep using the macro, you can set the JUCE_DEFINE_T_MACRO flag to 1, and it will still be available as before. 2011-09-28 11:40:00 +01:00
Julian Storer
7f4e56191a Mouse click and colour tweaks. Changed OSX URL reading to avoid local caching. 2011-09-16 22:07:47 +01:00
Julian Storer
b70e0a28d2 First check-in of the "jucequake": a major re-organisation of the library to break it up into modules. For more details about this, see the website forum.. 2011-08-12 10:04:52 +01:00
Renamed from src/gui/graphics/colour/juce_Colour.cpp (Browse further)