Newbie help: Increasing diameter with paintoval in lcd

Apr 8, 2006 at 4:25pm

Newbie help: Increasing diameter with paintoval in lcd

Hey, I need to increase the diameter of the oval without changing the midpoint. Any help or suggestions are appreciated. Thanks!

#P window setfont Fixedsys 9.;
#P number 429 145 35 9 0 0 0 152 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P newex 388 252 40 9961481 – 10;
#P newex 469 251 40 9961481 + 40;
#P newex 419 202 48 9961481 t b i;
#P hidden message 256 50 24 9961481 40;
#P hidden message 256 25 72 9961481 loadbang;
#P newex 306 210 40 9961481 + 20;
#P newex 217 210 40 9961481 + 10;
#P hidden message 155 53 24 9961481 40;
#P hidden message 155 24 72 9961481 loadbang;
#P newex 171 210 40 9961481 + 10;
#P newex 262 210 40 9961481 + 20;
#P newex 256 156 48 9961481 t b i;
#P slider 256 82 15 58 0 2;
#P newex 155 156 48 9961481 t b i;
#P slider 155 80 15 58 0 2;
#P window setfont “Sans Serif” 9.;
#P hidden newex 200 388 34 9109513 t clear;
#P button 105 158 15 0;
#P hidden newex 27 418 26 9109513 print;
#P user lcd 136 439 128 128 1 1 0 0 0;
#P newex 138 340 139 9109513 pack paintoval 30 30 40 40 150;
#P window setfont Fixedsys 9.;
#P window linecount 2;
#P comment 50 95 100 9961481 ‘y’ coordinates;
#P comment 280 96 100 9961481 ‘x’ coordinates;
#P connect 19 1 21 0;
#P connect 19 1 20 0;
#P connect 19 0 2 0;
#P connect 19 0 21 0;
#P connect 19 0 20 0;
#P connect 20 0 2 3;
#P connect 21 0 2 2;
#P connect 22 0 19 0;
#P connect 10 1 15 0;
#P connect 10 1 16 0;
#P fasten 10 0 2 0 261 197 143 197;
#P connect 10 0 15 0;
#P connect 10 0 16 0;
#P connect 8 1 12 0;
#P connect 8 1 11 0;
#P fasten 8 0 2 0 160 197 143 197;
#P connect 8 0 12 0;
#P connect 8 0 11 0;
#P connect 9 0 10 0;
#P hidden connect 18 0 9 0;
#P hidden connect 17 0 18 0;
#P fasten 11 0 2 4 267 241 243 241;
#P fasten 16 0 2 3 311 242 218 242;
#P hidden connect 2 0 4 0;
#P connect 2 0 3 0;
#P hidden connect 2 0 6 0;
#P fasten 12 0 2 2 176 239 193 239;
#P fasten 15 0 2 1 222 241 168 241;
#P connect 7 0 8 0;
#P hidden connect 14 0 7 0;
#P hidden connect 13 0 14 0;
#P fasten 5 0 2 0 110 197 143 197;
#P hidden connect 6 0 3 0;
#P window clipboard copycount 23;

#25306
Apr 8, 2006 at 6:12pm

Nevermind, I figured it out

#74368
Apr 9, 2006 at 12:21am

always start like (paintoval $1 $2 $3 $4 $5 $6) then
it is easier to see what to do

#74369
Apr 12, 2006 at 9:42am

Mathew Crane wrote:
> Hey, I need to increase the diameter of the oval without changing the
> midpoint. Any help or suggestions are appreciated. Thanks!

Subtract half of the size for the upper left corner to get the midpoint
where you want it. (You probably should only go to bed earlier, leds to
faster answers… Or think “Math is fun”)

Sorry, couldn’t resist, your welcome, but don’t give up too early…

All the best,

Stefan

[][] [][][] [][] [][][]
[][][][][][][][][][][][][][][]

Stefan Tiedje
Klanggestalter
Electronic Composition
&
Improvisation

/~~~~~
\ /|() ()|
))))) )| | |( \
/// _/)/ )))))
___/ ///

————————-x—-
–_____———–|———–
–(_|_ —-|—–|—–()—-
– _|_)—-|—–()———–
———-()————x—–

14, Av. Pr. Franklin Roosevelt,
94320 Thiais, France
Phone at CCMIX +33-1-57 42 91 09

#74370

You must be logged in to reply to this topic.