snap has these blocks snap should also have a of block like it has a and block and a or block.
What would the of block do? If anything, snap should add an xor block.
I'll give you a example.
of
.
it would be in Operators
I just realized, an of block already exists
It's also hyperized
If you want to check if the mouse position is equal to the position of clones, then you can use the ask block.
Side note: when did this get hyperized?
Whats that mean?
i think it has something to do with lists.
It accepts hyperblocks, aka, a list as an input.
what am i looking at
hyperized blocks.
- a normal
(* 2 3)
. - hyperised
(* 2 '(4 5 6))
, which is the same as(map (lambda (x) (* 2 x)) '(4 5 6))
- hyperised
(* '(2 3 4) '(7 6 5))
, which is the same as
(map (((item(index)of([2][3][4]@</span>delInput@</span>addInput::list))×(value)@</span>delInput⋮@</span>addInput::operators)(value)(index)@</span>delInput@</span>addInput::grey ring)over ([7][6][5]@</span>delInput@</span>addInput::list)::list)
right
not only does that code not check if the mouse position matches the clones. AND is for testing booleans, not grouping numbers. even if that did work, it would only work for exactly one pixel, which is probably not what you want. just use the TOUCHING block.
Oh, heh, I didn't think about whether the script was right, I was just using the example @110443 gave. I should've switched the AND blocks for LIST blocks.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.