last day (15 days later) » 

11:21 AM
5
Q: Draw Sri Yantra

Eduard FlorinescuChallenge: Draw Sri Yantra. How to: There are different ways to draw it. All include many steps. If you think you can draw it without following the linked steps scroll below for the elements you must have in your drawing. Complete steps can be found here: http://www.saralhindi.com/Shri_Yantr...

 
@MartinBüttner I reedited the question, please tell me if the info is better now. Drawing this Yantra is no easy challenge, and laying the specs is a bit challenging too
@Optimizer I wish it was that clear as that hat, it will probably close an that's it.
@DavidCarraher The coloring pattern should be of the one of the step 6, the green square, red & yellow petals, idealy there should be no interesaction, only touching, but minimal deviations and errors would be tolerated where they happen
 
@EduardFlorinescu If you use third party units do you have to count that code to add to your score? Note, this isn't code that creates the picture, it's code that will find the point where lines intersect.
 
if you use circles, triangles etc, or any other unit as long as you specify where to get that unit, unless it doesn't draw the entire yantra you don't have to add that code to the final score.
 
Thanks, got it figured out already though ;) And damn.. this is hard, Only got the triangles done and my code is huge already. Optimizing it now xD
 
@TeunPronk That's the hardest part, kudos
 
11:21 AM
@EduardFlorinescu not sure about that.. not looking forward to those petals haha
 
@TeunPronk I am guessing that you are not opting for the arc circle petals
 
11:55 AM
Well when I post the answer I will probably use the semi circle, then I will try to make the pretty petals :P
 
 
2 hours later…
1:56 PM
Well I fixed the triangle part. Looks much better than before. So thats just the inner circle and right now im on 2802 characters haha. But I can save a lot on spaces and if I remove all newlines that will save quite a lot too.
Delphi is not a great language for codegolf xD
 
 
6 hours later…
7:41 PM
All that pascal legacy, you probably need a lot of ";"
BTW I really loved pascal, and I coded a few lines in Delphi too
 

  last day (15 days later) »