• Stars
    star
    137
  • Rank 266,121 (Top 6 %)
  • Language
    JavaScript
  • Created over 8 years ago
  • Updated about 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Interpolations from a circle to a triangle in p5.js

Circle Morphing

Computational interpolations from a circle-to-a-square, and circle-to-a-triangle, using p5.js

THIS SOFTWARE IS NOT FREE. NO COMMERCIAL USE. ATTRIBUTION REQUIRED. BY-NC.

Morph #06 from Circle to Triangle

References / See Also:

--

Some Ways of Transforming a Circle into a Square

  1. (code) by progressively deleting all points except for the square's corners
  2. (code) by approximating a circle with four Bezier cubic splines and modulating the spline control points
  3. (code) by approximating a circle with four circular arcs whose radii lengthen to infinity
  4. (code) by linearly interpolating points on the circle towards points on the square, along radii of the circle
  5. (code) by progressively moving points evenly sampled along the circle, towards points on the square, resampled at equal intervals, by small random amounts
  6. (code) by treating it as a rounded rect, whose (rounded) corners have a dynamic radius
  7. (code) by treating it as a multisided polygon whose number of sides gradually decreases to four
  8. (code) by gradually flattening the circle on four sides
  9. (code) by gradually shrinking the circle's radius, revealing square corners within
  10. (code) by treating points along the perimeter as a series of springy particles
  11. (code) by considering it as a set of alternating straight lines and arcs in which the arcs shrink while the lines grow
  12. (code) by using a 'superellipse' formula
  13. (code) by progressively subdividing it into a 4-gon, 8-gon, 16-gon, 32-gon, etc., with smooth interpolations.
  14. (code) by abruptly moving points evenly sampled along the circle, towards corresponding points on the square

--

Some Ways of Transforming a Circle into a Triangle

  1. (code) // by sampling a circle into many vertices, and then locally averaging each point with its neighbors, except for the three special corner vertices.
  2. (code) by progressively deleting all points except for the triangle's corners
  3. (code) by approximating a circle with three Bezier cubic splines and modulating the spline control points
  4. (code) by approximating a circle with three circular arcs whose radii lengthen to infinity
  5. (code) by linearly interpolating points on the circle towards points on the triangle, along radii of the circle
  6. (code) by progressively moving points evenly sampled along the circle, towards points on the triangle, resampled at equal intervals, by small random amounts
  7. (code) by treating it as a rounded triangle, whose (rounded) corners have a dynamic radius
  8. (code) by treating it as a multisided polygon whose number of sides gradually decreases to three
  9. (code) by gradually flattening the circle on three sides
  10. (code) by gradually shrinking the circle's radius, revealing triangular corners within
  11. (code) by treating points along the perimeter as a series of springy particles
  12. (code) by considering it as a set of alternating straight lines and arcs in which the arcs shrink while the lines grow
  13. (code) by treating the form as a series of 6 circular arcs, alternatingly with small and large radii
  14. (code) by progressively subdividing it into a 3-gon, 6-gon, 12-gon, 24-gon, etc., with smooth interpolations.

More Repositories

1

lectures

Lectures used in my pedagogy
Processing
256
star
2

ExperimentalCapture

A Curriculum for a Semester Course in Computational & Expanded β–ˆβ–ˆβ–ˆography
C
203
star
3

exercises

Solutions to Exercises from 'Code as Creative Medium'
JavaScript
201
star
4

LoopTemplates

Templates for generating animated seamless loops in Processing and p5.js
JavaScript
171
star
5

Pattern_Master

Processing
132
star
6

generative_covers

A resource about large-run books with generative covers
113
star
7

DrawingWithMachines

Resources for the CMU Drawing with Machines Course
JavaScript
85
star
8

QR_STENCILER

QR Code Stenciler, built in Processing 1.5.1+
Processing
60
star
9

AmbigrammaticFigures

54
star
10

MPM-Fluid

Implementations of Kot's MPM fluid simulation for openFrameworks 0.7 (OSX) and Processing 2.0a4.
C++
34
star
11

DepthHoleFiller

Class to fill holes in a depth image (e.g. from Kinect)
C
29
star
12

BloggieUnwarp

OpenFrameworks tool to unwarp panoramic video from the Sony Bloggie camera (MHS-PM5K)
C++
23
star
13

shelters-as-artworks

A list of shelters-as-artworks, and artworks that deal with the concept of shelter.
20
star
14

PraxinoscopeTemplate

Processing 3.x Template for KidzLabs/4M/Toysmith Animation Praxinoscope
Processing
19
star
15

ProcessingShader

Simple template for GLSL shader in Processing
Processing
17
star
16

GMLStenciler

An openFrameworks tool for converting GML files into EPS stencils suitable for laser-cutting. For complete information see the link below.
C++
15
star
17

Kinect-6DSlam

Kinect plus 6D SLAM in OpenFrameworks
13
star
18

image_inpainting_processing

Small project for pyramidal image inpainting in Processing
Processing
11
star
19

ZoetropeTemplate

Processing Template for Zoetrope toy by Eye Think
Processing
10
star
20

assignmentbook

A book of Creative Coding Assignments by Golan & Tega
6
star
21

DigitalArt

Digital Art
C++
6
star
22

ofBookChapter

Chapter on image processing and computer vision for ofBook
4
star
23

axidraw

Controlling the AxiDraw Plotter
Processing
4
star
24

p5-in-comfyui

Instructions to use Stable Diffusion in ComfyUI on Mac, to interpret images generated by p5.js sketches.
3
star
25

SimpleBasilBook

A simple alphabet book written in Basil.js
JavaScript
3
star
26

recipes

Recipes for Food
3
star
27

GMLSVD

Find GML tags based on other GML tags
Java
3
star
28

anderson_ranch

Workshop in Computer Vision for the Arts at Anderson Ranch, July 2014
C++
2
star
29

gml_analyzer

Python Analyzer for GML Tags
Python
2
star
30

TextRain

Cover version (re-code) of Utterback & Achituv's classic TextRain in Processing
Java
2
star
31

IACD2014

Materials for Interactive Art & Computational Design, Spring 2014
Processing
2
star
32

ilda_etherdream_laser_example

ILDA + EtherDream Laser Example
C++
2
star
33

quilt

Quilt generator for Andrea
Processing
2
star
34

GMLSpace

JavaScript frontend to the Mozilla GML project
2
star
35

gml_analyzer_server

Python
2
star
36

tyketype

ultra-minimal typing app for toddlers on osx
C++
1
star
37

golanlevin.github.io

Website for Golan Levin
1
star
38

GPP2016_Display

Display system for GPP at DFN
C++
1
star
39

dino-diffusion-p5

Dino Diffusion running in p5.js
JavaScript
1
star