Skip to main content
The 2024 Developer Survey results are live! See the results
6 votes

Draw a Regular Reuleaux Polygon

Python, 64 bytes from turtle import* def f(n,d): for c in[0,d]*n:circle(c,180/n) ATO Does not work for this (missing _tkinter)!...
Albert.Lang's user avatar
  • 3,074
6 votes

Plot the ground path of a satellite

Ruby, Golfed version 313 bytes ...
Level River St's user avatar
5 votes

Draw a Regular Reuleaux Polygon

Wolfram Language (Mathematica), 62 bytes Graphics[ResourceFunction["ReuleauxPolygon"][Input[],Input[]]] Of course Wolfram has a way to do this. First ...
SanguineL's user avatar
  • 738
4 votes

Draw a Regular Reuleaux Polygon

Ruby, 152 142 138 bytes ...
Level River St's user avatar
3 votes

Draw a Regular Reuleaux Polygon

MATL, 36 bytes t:!=ZFt9W:8W/qt!J*+le-|wq|X>>a[]e0YG Try at MATL Online! For input n, this computes the n-th roots of unity, and colours each pixel if and ...
Luis Mendo's user avatar
  • 105k
3 votes

Draw a Regular Reuleaux Polygon

R, 116 111 98 bytes Edit: no longer requiring radius to be given as an input saves 13 bytes. ...
Dominic van Essen's user avatar
2 votes

Draw a Regular Reuleaux Polygon

Scratch 3.23.1, 160 145 bytes thanks to noodle person for syntax correction & golfing ...
int 21h Glory to Ukraine's user avatar
2 votes

Draw a Regular Reuleaux Polygon

Javascript, 154 147 143 bytes A function returning a string containing an SVG for inline insertion into a HTML page. 2 bytes less due to changed count. 5 byte saved thx to hints by @noodle person and @...
ccprog's user avatar
  • 731
2 votes

Draw a Regular Reuleaux Polygon

Logo, 61 60 bytes to r:n repeat:n[pd arc 90 180/:n pu fd 90 rt 180-180/:n] end Unfortunately the online logo resource I used to use is no longer available, but you ...
Neil's user avatar
  • 173k
2 votes

Create a Pride Flag

JavaScript (Node.js), 122 91 88 bytes for(i=o='';i<6e3;)o+=++i%100?[...'🟥🟧🟨🟩🟦🟪'][i/1e3|0]:` `;console.log(o) Try it online! My intention was to create a ...
Andrew Bayly's user avatar
1 vote

Draw a Regular Reuleaux Polygon

APL(Dyalog Unicode), 58 56 bytes SBCS -2 bytes due to unused variable assignment B←. A dfn that takes the number of edges and outputs a bitmap of the shape. ...
akamayu's user avatar
  • 673
1 vote

Create a Pride Flag

Typst, 102 89 bytes Produces PDF by default, so scalable. #stack(..(red,orange,yellow,green,blue,purple).map(c=>box(width:45pt,height:5pt,fill:c)))
bb94's user avatar
  • 2,771
1 vote

Draw the national flag of France

gnuplot, 109 bytes Today is le quatorze juillet (the 14th of July) so let me congratulate our neighbors with their national holiday! ...
int 21h Glory to Ukraine's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible