Computer Science Canada Smoke Tur Graphics |
| Author: | imnerdybutactuallynotnerd [ Sat Nov 28, 2015 12:42 am ] |
| Post subject: | Smoke Tur Graphics |
I trying to make chimey with smoke ovals coming from it. I used loop to make sure it would continue to draw 6 colour variation of smoke ovals. I do not understand what I did wrong. Can someone explain what I did wrong so I can try to fix it? Thank my cod: drawline ((maxx div 2) - 50, (maxy div 2) + 75, (maxx div 2) - 50, (maxy div 2) + 120, 40) drawline ((maxx div 2) - 50, (maxy div 2) + 120, (maxx div 2) - 35, (maxy div 2) + 120, 40) drawline ((maxx div 2) - 35, (maxy div 2) + 94, (maxx div 2) - 35, (maxy div 2) + 120, 40) drawline ((maxx div 2) - 35, (maxy div 2) + 94, (maxx div 2) - 50, (maxy div 2) + 75, 40) drawfill ((maxx div 2) - 43, (maxy div 2) + 98, 40, 40) %smoke ovals var var x : int := 0 loop x := x + 1 for i : 1 .. 6 drawfilloval (240 + x, 399 + x, 18 + x, 6 + x div 5, 25 + i) end for when x = 6 end loop> ps i am using Turing 4.1.1 |
|
| Author: | TokenHerbz [ Sat Nov 28, 2015 1:45 am ] | ||
| Post subject: | RE:Smoke Tur Graphics | ||
i dont understand the question, plus your code doesn't work, it has errors, bit if i think you want a smoke coming from a chiminy, why not go the simple route, circles getting bigger or smaller, overlapping, and going up. ... X is the lengthish location vertical of the smoke, move that slightly, Y is the height of the smoke, vorizonle, move that more, and with more or less radious depending what you want.
|
|||