Drawing Butterflies and Hearts... USING ONLY CODE - Small Basic Featured Programs
Published Feb 12 2019 01:54 PM 2,259 Views
Microsoft
First published on MSDN on Feb 08, 2013

Authored by Ed Price


UPDATES : Added Nonki's heart as Heart #3 on 2/13. Added Nonki's butterfly as Butterfly #3 on 2/11.


===========================


Check out our February Small Basic Coding Challenges from LitDev! Community challenges are from Math Man and Amir CPS.



Today we're going to look at two challenges and two programs from each challenge...



Small Challenge 2


Draw a picture of a butterfly.



The first Butterfly is from Math Man :


NDG956






Our second Butterfly comes from NaochanON :


LVF292





Our third Butterfly comes from Nonki Takahashi :


WXF823







Community Challenge 2 - By Amir CPS


(b) Draw a heart shape and calculate it's area.



This first Heart is from Nonki Takahashi :


SWQ275





Our second heart comes from NaochanON :


(  area...... r=r+dr,   dS= r*r*dθ/2   θ= 0 -2pi  )


CFQ822





Our third Heart is also from Nonki Takahashi :


SWQ275-3





The numerically-integrated area of the Heart Function was very near to pi (circular constant).



Our fourth Heart comes from Math Man (you have to import it and it run locally to get the input to work):


ZHP577-0




Thanks to everyone for the great contributions! What do you think? How hard is it to draw like this in Small Basic?


Leave a comment!


- Ninja Ed

Version history
Last update:
‎Feb 12 2019 01:54 PM
Updated by: