I haven't spent days but enough time to know I don't know what I'm doing - no databases to be found anywhere.
Just for starters I have this code
Code: Select all
on MouseUp
local lnCardWidth, lnCardHeight, lnX, lnY, lnSize
set the backgroundcolor of this card to" WHITE"
put the width of this card into lnCardWidth
put the height of this card into lnCardHeight
-- Get rid of any images
repeat with lnX = the number of graphics down to 1
delete graphic lnX
end repeat
create graphic 1
set the style of graphic 1 to "oval"
set the opaque of graphic 1 to TRUE
set the linesize of graphic 1 to 1
set the textcolor of graphic 1 to "BLACK"
-- Get the centre
put lnCardWidth / 2 into lnX
put lnCardHeight / 2 into lnY
set the backgroundColor of graphic 1 to "WHITE"
YinYang lnX, lnY, 300
end MouseUp
on YinYang pX, pY, pSize
lock screen
set the location of graphic 1 to pX, pY
set the width of graphic 1 to pSize
set the height of graphic 1 to pSize
set the style of the templateGraphic to "line"
set the points of the templategraphic to (pX, pY +pSize / 2, px ,pY - pSize / 2)
create graphic
unlock screen
end YinYang
All I want to do is color the left half of the circle in Black - Now knowing this is livecode there are probably 10 ways to do this - 2 or 3 will do '-) . The simplest is always the best - "make it work then make it better"
I'm using LC v 6.7.11
Regards Lagi