how can i pixel a card so that each pixel could be programmed separately?
Actually i am trying to fix a card in my project where color palette will be shown and once i clicked on any pixel containing different color the whole of my text changes into the selected color.
As i am beginner to live code please explain so that i could proceed in my project.
card with color palette
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: card with color palette
Hello Shikha kumari,
1. welcome to the forum!
2. You could use 1*1 pixel (or maybe a LITTLE bigger, it is hard to hit 1*1 pixel objects with the mouse
)
opaque graphics with no border, group them and apply a script to the group.
Do like this:
Create a field
Create as many graphics as you need, no border, opaque
Set their fillcolor to the color you like
Select all these graphics
GROUP them -> CMG-G or menu "Object" -> Group selected
Apply this script to the new GROUP:
Done, tested and works
Here some great learning resources for the basics of Livecode:
http://www.hyperactivesw.com/revscriptc ... ences.html
Hint: Look up all terms in the dictionary to learn more about them!
Best
Klaus
1. welcome to the forum!

2. You could use 1*1 pixel (or maybe a LITTLE bigger, it is hard to hit 1*1 pixel objects with the mouse

opaque graphics with no border, group them and apply a script to the group.
Do like this:
Create a field
Create as many graphics as you need, no border, opaque
Set their fillcolor to the color you like
Select all these graphics
GROUP them -> CMG-G or menu "Object" -> Group selected
Apply this script to the new GROUP:
Code: Select all
on mouseup
set the textcolor of fld "your field name here" to the backcolor of the target
end mouseup

Here some great learning resources for the basics of Livecode:
http://www.hyperactivesw.com/revscriptc ... ences.html
Hint: Look up all terms in the dictionary to learn more about them!
Best
Klaus
-
- Posts: 19
- Joined: Fri Feb 19, 2016 7:48 am
Re: card with color palette
Thank you Klaus for your reply...
i will work on it..
i will work on it..