mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-08 04:20:09 +00:00
The first working check-in of an iPhone build! Added an iPhone project for the normal juce demo, which runs.. although it isn't exactly designed for a hand-held form factor!
Also in this check-in is support for creation of custom Mac MIDI input and output devices, and an option to load URLs with the QuickTimeComponent
This commit is contained in:
parent
6c66134173
commit
d779fa9759
56 changed files with 3074 additions and 1166 deletions
|
|
@ -129,17 +129,12 @@ const Colour ColourGradient::getColourAtPosition (const float position) const th
|
|||
return Colour (colours.getUnchecked(i));
|
||||
|
||||
const int pos1 = colours.getUnchecked (i);
|
||||
PixelARGB pix1 (colours.getUnchecked (i + 1));
|
||||
pix1.premultiply();
|
||||
const Colour col1 (colours.getUnchecked (i + 1));
|
||||
|
||||
const int pos2 = colours.getUnchecked (i + 2);
|
||||
PixelARGB pix2 (colours.getUnchecked (i + 3));
|
||||
pix2.premultiply();
|
||||
const Colour col2 (colours.getUnchecked (i + 3));
|
||||
|
||||
pix1.tween (pix2, ((integerPos - pos1) << 8) / (pos2 - pos1));
|
||||
pix1.unpremultiply();
|
||||
|
||||
return Colour (pix1.getARGB());
|
||||
return col1.interpolatedWith (col2, (integerPos - pos1) / (float) (pos2 - pos1));
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue