You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ruFlash
есть массив цветов - нужно из них получить цвета немного светлее то есть добавить белого. вроде бы это легко, но чтото я не особо разбираюсь в матрицах трансформирования :)
Alexander Sergeyev
unread,
Nov 10, 2009, 12:09:52 PM11/10/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ruFlash
В матрице трансформаций колортрансформа задать коэффициенты на диагонали чуть больше единицы, либо оставить их единичными, и чуть добавить в последнем столбце. Первый способ сохранит, извиняюсь за выражение, hue, а второй добавит белого.
foreground
unread,
Nov 10, 2009, 12:13:04 PM11/10/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ruf...@googlegroups.com
В флексе есть утилитный класс который ето делает. Да и в гугле есть инфа
Daniil Tutubalin
unread,
Nov 11, 2009, 1:14:20 AM11/11/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ruf...@googlegroups.com
Чтобы именно добавить 20% белого, можно воспользоваться таким трансформом: new ColorTransform(0.8, 0.8, 0.8, 1, 51, 51, 51, 0);
Вообще, чтобы сделать tint до цвета, имеющего компопненты r, g и b, с силой q (от 0 до 1), нужно использовать такой трансформ:
new ColorTransform(1-q, 1-q, 1-q, 1, r*q, g*q, b*q, 0);