2 added 12 characters in body
source | link

The Reuleaux triangle is the shape formed by the intersection of three circles, with each circle passing through the others' centers. Regardless of rotation, a Reuleaux triangle's width will always equal the radius of the circles:

From Wolfram MathWorld

Image: Wolfram MathWorld

Write a program that takes a width r as input and displays a Reuleaux triangle of that width (in pixels).

You must display the shape in isolation, i.e. solid-filled, un-stroked, and over a solid-filled background.

- Shortest program in bytes wins.

The Reuleaux triangle is the shape formed by the intersection of three circles, with each circle passing through the others' centers. Regardless of rotation, a Reuleaux triangle's width will always equal the radius of the circles:

From Wolfram MathWorld

Image: Wolfram MathWorld

Write a program that takes a width r as input and displays a Reuleaux triangle of that width.

You must display the shape in isolation, i.e. solid-filled, un-stroked, and over a solid-filled background.

- Shortest program in bytes wins.

The Reuleaux triangle is the shape formed by the intersection of three circles, with each circle passing through the others' centers. Regardless of rotation, a Reuleaux triangle's width will always equal the radius of the circles:

From Wolfram MathWorld

Image: Wolfram MathWorld

Write a program that takes a width r as input and displays a Reuleaux triangle of that width (in pixels).

You must display the shape in isolation, i.e. solid-filled, un-stroked, and over a solid-filled background.

- Shortest program in bytes wins.

    Tweeted twitter.com/StackCodeGolf/status/874444528786309123
1
source | link

Draw A Reuleaux Triangle!

The Reuleaux triangle is the shape formed by the intersection of three circles, with each circle passing through the others' centers. Regardless of rotation, a Reuleaux triangle's width will always equal the radius of the circles:

From Wolfram MathWorld

Image: Wolfram MathWorld

Write a program that takes a width r as input and displays a Reuleaux triangle of that width.

You must display the shape in isolation, i.e. solid-filled, un-stroked, and over a solid-filled background.

- Shortest program in bytes wins.