Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 02:15 22 Nov 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : PicoMiteVGA DEMO

     Page 5 of 5    
Author Message
javavi

Senior Member

Joined: 01/10/2023
Location: Ukraine
Posts: 193
Posted: 05:11pm 19 Nov 2024
Copy link to clipboard 
Print this post

Black and White Infinite Art Cubism

MODE 1
Do
 Q=Int(Rnd*5+3): If Q=7 Then Q=30
 A=Rad(360/Q): S=Sin(A): C=Cos(A)
 X=Rnd*MM.HRes: Y=Rnd*MM.VRes
 R=Rnd*(Sqr(Y+X)/20)*40+16
 For L=-R/5 To R/5
   N=(Abs(L)<R/8)*Int(Rnd*2)
   U=R+L: V=U
   X1=X+U: Y1=Y+V
   For I=1 To Q
     T=V*C-U*S: U=V*S+U*C: V=T
     X2=X+U: Y2=Y+V
     Line X1,Y1,X2,Y2,,N
     X1=X2: Y1=Y2
   Next
 Next
Loop While Inkey$=""
 
     Page 5 of 5    
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024