Sierpinski pentagon: Difference between revisions
m
→{{header|Sidef}}: modified the code to work with Sidef 2.30
m (→{{header|Sidef}}: modified the code to work with Sidef 2.30) |
|||
Line 259:
(sides**order).range.each { |i|
var vector = ([vertices
var points = (vertices »*» orders[-1]*(1-scaling_factor) »+» vector »reals»() «%« '%0.3f')
say ('<polygon points="' + points.join(' ') + '"/>')
|