Screen Filler Zakraska - Printable Version +- QB64 Phoenix Edition (https://staging.qb64phoenix.com) +-- Forum: QB64 Rising (https://staging.qb64phoenix.com/forumdisplay.php?fid=1) +--- Forum: Code and Stuff (https://staging.qb64phoenix.com/forumdisplay.php?fid=3) +---- Forum: Programs (https://staging.qb64phoenix.com/forumdisplay.php?fid=7) +---- Thread: Screen Filler Zakraska (/showthread.php?tid=1104) |
Screen Filler Zakraska - DANILIN - 11-11-2022 Screen Filler Zakraska Zakraska.bas program fills screen with dots by dividing field into a 4x4 section or arbitrarily and better sides of field of multiples of small sections Row under label 3: rotating row checks condition and repeats itself Dot is placed strictly in an empty place and field is filled in 100% and there are also counters of points not set and a time counter Results: 2x2 = 2 seconds & 27ooo repetitions for 25ooo points 4x4 = 5 seconds & 65ooo repetitions for 25ooo points 8x8 = 15 seconds & 95ooo repetitions for 25ooo points 16x16 = 55 seconds & 135ooo repetitions for 25ooo points 32x32 many seconds & many repetitions for 25ooo points Field is filled in by 100% Conclusion: random control is real Code: (Select All) w = 640: h = 400: p = w * h: Screen 12 ' zakraska.bas by Danilin At end dark dots are sprayed without checking for repetitions in number of points of product of length and width shaded points remain Option of canceling shading by increasing number of cycles all one leaves shaded points Conclusion: random without control unmanaged This shading algorithm can show state flags from stripes Plus there is an idea: exe reads from beginning of basic program parameters width and height and size of square and it is possible to paint text screen sign and colorable quadrats possibly multicolored like a chessboard TOTAL: absolutely random quickly fill the screen by 100% RE: Screen Filler Zakraska - Pete - 11-11-2022 Can you code it to go in reverse? Thinking of a neat effect where the system randomly loads an image under a solid overlay screen, which dissolves away by dots until the underlying image is completely revealed. Put a timer on it, and you have a multiplayer guessing game. Pete RE: Screen Filler Zakraska - bplus - 11-11-2022 I did that in Blackjack with Dealer's Dialog, while talking, the static on a little screen coalesced into text. RE: Screen Filler Zakraska - DANILIN - 11-12-2022 I think it's more interesting to implement chess filling and reverse where posible variants |