Subscribe to our YouTube channel.Tutorials and more athttps://www.youtube.com/c/QB64Team.
0 Members and 1 Guest are viewing this topic.
Another quickie for this morning and Aurels Forum: http://basic4all.info8-hosting.info/index.phpShowing Aurel how he might do this more satisfactory with his MicroA interpreter with this QB64 example:Code: QB64: [Select]_Title "Rotating Pyramid" 'b+ 2022-03-01Screen 12cx = _Width / 2ax = cx: ay = 50 ' apexex = cx: ey = 330 ' ellipsexr = cx * .7: yr = .33 * xrDo Cls x1 = ex + xr * Cos(a): y1 = ey + yr * Sin(a) x2 = ex + xr * Cos(a + _Pi * .5): y2 = ey + yr * Sin(a + _Pi * .5) x3 = ex + xr * Cos(a + _Pi): y3 = ey + yr * Sin(a + _Pi) x4 = ex + xr * Cos(a + _Pi * 1.5): y4 = ey + yr * Sin(a + _Pi * 1.5) l x1, y1, x2, y2 l x2, y2, x3, y3 l x3, y3, x4, y4 l x4, y4, x1, y1 l x1, y1, ax, ay l x2, y2, ax, ay l x3, y3, ax, ay l x4, y4, ax, ay a = a + .01 _Display _Limit 30Loop Until _KeyDown(27) Sub l (a, b, c, d) ' this is just way easier to code lines Aurel you dont need this part Line (a, b)-(c, d)End Sub