[Sc-devel] propose: Color-addons
Julian Rohrhuber
rohrhuber at uni-hamburg.de
Tue Jul 24 15:28:06 PDT 2007
>On 24.07.2007, at 13:26, Julian Rohrhuber wrote:
>
>>>Hello,
>>>
>>>I put together my implementations on binaryOps on Color here:
>>> http://swiki.hfbk-hamburg.de/MusicTechnology/861
>>>
>>>It works quite well for me for about half a year now and I thought
>>>we could put it into the distro... any objections/comments are
>>>welcome
>>
>>
>>what is autoTest?
>
>test and autoTest are methods to just see what color you have created.
>in difference to test, autoTest closes the appearing window by itself.
maybe .glimpse would be a good name?
>I do not rely on names here, I do not even rely on having this in
>the distro. (can make it part of the lfsaw.de quark, though :-)
instead I find it better to make a quark for graphics utilities where
these kinds of things can be collected thematically. But I think a
test method is good to have in common.
>
>>
>>are the binary ops commutative?
>
>now they are :-)
>
>>
>>i.e. colour + number work the same as number + colour?
>
>Color(4, 4, 4, 4.0) == (3 + Color(1, 1, 1))
>--> true
>
>(Color(1, 1, 1) + 3) == (3 + Color(1, 1, 1))
>--> true
>
>([1, 2, 3, 0] + Color(1, 2, 3)) == (Color(1, 2, 3) + [1, 2, 3, 0])
>--> true
>
>
>
>On 24.07.2007, at 13:52, Fredrik Olofsson wrote:
>>hi till,
>>sorry to bug you but surely there's a serious typo under 'math support'...
>>
>>/ { arg aNumber, adverb; ^aNumber.performBinaryOpOnColor('*', this, adverb) }
>
>fixed.
>
>>
>>.divide didn't look the same as before.
>
>:-)
>
>
>regards
>Till
>_______________________________________________
>Sc-devel mailing list
>Sc-devel at create.ucsb.edu
>http://www.create.ucsb.edu/mailman/listinfo/sc-devel
--
.
More information about the Sc-devel
mailing list