Search found 474 matches

by Quark
Jan 11, 2016 13:52
Forum: Sources, Examples, Tips and Tricks
Topic: Recursive Sierpinski Triangle using Cairo
Replies: 8
Views: 2298

Re: Recursive Sierpinski Triangle using Cairo

. Roland, Yes, I substituted: SCREEN_W * sizeof(integer<32>) _ and it worked. I recall that some code of BasicCoder2 ran afoul of integer-size on my machine. I wonder how many little problems the integer-size issue will cause in cairo and other libraries? Oh well, price of change, I guess. --Quark .
by Quark
Jan 11, 2016 10:12
Forum: Sources, Examples, Tips and Tricks
Topic: Recursive Sierpinski Triangle using Cairo
Replies: 8
Views: 2298

Re: Recursive Sierpinski Triangle using Cairo

. I cannot run this so far. I am using Linux Mint w 64-bit FB. Installed cairo with this: "sudo apt-get install libcairo2-dev" And then the Sierpinski Triangle program compiled OK, but on running it, I got a segmentation fault. This happened on a cairo examples program too. Any ideas? --Qu...
by Quark
Jan 10, 2016 19:27
Forum: Sources, Examples, Tips and Tricks
Topic: The spooky recursive backtracker
Replies: 9
Views: 3417

Re: The spooky recursive backtracker

.
Roland,

Thanks for the suggestions. I modified the code accordingly, and posted it. The logic is the same, and your code is just as clear, but also simpler.

--Quark
.
by Quark
Jan 05, 2016 7:41
Forum: Sources, Examples, Tips and Tricks
Topic: The spooky recursive backtracker
Replies: 9
Views: 3417

Re: The spooky recursive backtracker

.
I added another example of the recursive backtracker to the program. This one solves the maze no matter how twisty the little passages.

Jan 8, 2016 Added an automatic re-run capability after a 7-second delay, plus other small changes

--Quark
.
by Quark
Jan 04, 2016 8:45
Forum: Sources, Examples, Tips and Tricks
Topic: The spooky recursive backtracker
Replies: 9
Views: 3417

Re: The spooky recursive backtracker

. BasicCoder2, No, not my original work. Got the idea from this site: http://www.astrolog.org/labyrnth/algrithm.htm If you look at my code, you'll see I copied the all-too brief algorithm in text form to my program. Then thought about it and tried stuff till it worked and emphasized the backtracking...
by Quark
Jan 04, 2016 8:35
Forum: Sources, Examples, Tips and Tricks
Topic: Animated Birds
Replies: 7
Views: 2355

Re: Animated Birds

.
Thanks for doing the flying birds, BasicCoder2.

As you say, it is a nice addition to the DRAW-string art gallery. Most welcome.

--Quark

.
by Quark
Jan 04, 2016 6:37
Forum: Sources, Examples, Tips and Tricks
Topic: The spooky recursive backtracker
Replies: 9
Views: 3417

The spooky recursive backtracker

. Update Jan 10, 2016 Modified the code in three routines as suggested by Roland Chastain. Update Jan 8, 2016 Slight re-write to allow automatic re-run after 7 seconds, for those who enjoy seeing the recursive backtracker in action repeatedly. Also small alterations in rates of change. Update: Jan 5...
by Quark
Jan 04, 2016 5:24
Forum: Sources, Examples, Tips and Tricks
Topic: Animated Birds
Replies: 7
Views: 2355

Re: Animated Birds

. BasicCoder2, I bet most readers are, by now, familiar with your views on this. "Too primitive" is of course a relative term, and depends on aspirations, which may reach beyond BASIC. My view is: show you have gone as far as possible in FB first, then go farther in some other way if desir...
by Quark
Jan 02, 2016 2:39
Forum: Sources, Examples, Tips and Tricks
Topic: Animated Birds
Replies: 7
Views: 2355

Re: Animated Birds

. Thanks Pim & integer, Pim, it might be a while before I do a book like that, but shorter works might well be within reach of interested FB coders/story-writers. A collaborative effort would help. Integer, The time for the simple background was quite short in my DRAW-string Creator program, but...
by Quark
Dec 30, 2015 20:15
Forum: Sources, Examples, Tips and Tricks
Topic: Animated Birds
Replies: 7
Views: 2355

Animated Birds

. “Now the New Year reviving old Desires. The thoughtful Soul to Solitude retires" ... And out in those New Year solitudes, no doubt there are flocks of birds flying to unknown destinations. An example here courtesy of FB's DRAW command: And, Happy New Year, --Quark '===========================...
by Quark
Dec 21, 2015 3:07
Forum: Sources, Examples, Tips and Tricks
Topic: Humble DRAW not so humble after all
Replies: 144
Views: 13888

Re: Humble DRAW not so humble after all

. @All, I did one last update on the 3rd demo in the original post. I've thought and thought, and having thunk, have decided to bring this (for me) most enjoyable thread to a close. It has brought about more on my part, and on that of others, than I had imagined. Time to get back to my RDS_Editor, a...
by Quark
Dec 17, 2015 0:38
Forum: Sources, Examples, Tips and Tricks
Topic: Humble DRAW not so humble after all
Replies: 144
Views: 13888

Re: Humble DRAW not so humble after all

. BasicCoder2, Yes, that is the sort of thing that helps this thread along. We are investigating, as coders do, the possibilities. I am hoping to see more of that embedding of pointers in the string, then substituting different sub-strings as needed. There may be problems with it that are not reveal...
by Quark
Dec 16, 2015 21:22
Forum: Sources, Examples, Tips and Tricks
Topic: Humble DRAW not so humble after all
Replies: 144
Views: 13888

Re: Humble DRAW not so humble after all

. BasicCoder2, For the third time, I know that, and seek for examples of practical use. Post any that occur to you. In the end, sub-strings are still just strings. An analogy of use might be a carefully made button for a program screen, then placing different text or icon-images on the buttons to va...
by Quark
Dec 16, 2015 5:01
Forum: Sources, Examples, Tips and Tricks
Topic: Humble DRAW not so humble after all
Replies: 144
Views: 13888

Re: Humble DRAW not so humble after all

. @all, In my investigations of relative DRAW-strings, I wanted to address the idea of making patterns with simple strings. And I wanted an excuse to make a Greek key pattern because it is a classic way of making a border. The code below shows screens made of pairs of simple DRAW-strings which were ...
by Quark
Dec 14, 2015 18:50
Forum: Sources, Examples, Tips and Tricks
Topic: Humble DRAW not so humble after all
Replies: 144
Views: 13888

Re: Humble DRAW not so humble after all

. BasicCoder2, Interesting, though it needs some random funkiness to suggest the real world of plants. Still, this is in a right direction, for sure. I messed with your code and got this variation: --Quark '======================================================================= 'Recursive_Tree_Basic...