Skip to content

Instantly share code, notes, and snippets.

View nicholaswmin's full-sized avatar
💭
I may be slow to respond.

Nicholas Kyriakides nicholaswmin

💭
I may be slow to respond.
  • Bitpaper UK, The Profs
  • 04:40 (UTC -01:00)
View GitHub Profile
@nicholaswmin
nicholaswmin / paperKMeans.js
Last active April 16, 2016 18:10
Clustering Paper.js Elements together using the K-means algorithm.
/**
* Clusters a number of Paper Elements as Paper Groups.
* Clustering is based on distance between elements,
* using K-means clustering.
* - This method DOES NOT preserve z-order of items, so use with caution
*
*
* - Dependent on clusterfck.js.
* See: https://github.com/NathanEpstein/clusters
* and download browser .js file.
@nicholaswmin
nicholaswmin / catmull-rom.js
Last active January 13, 2026 19:59
catmull-rom
/* Catmull-Rom interpolating splines in ES6
----
authors: Nicholas Kyriakides (2017) & Unknown
from: "A class of local interpolating splines"
Catmull, Edwin; Rom, Raphael | University of Utah, 1974
Barnhill, Robert E.; Riesenfeld, Richard F. (eds.).
Computer Aided Geometric Design.
@summary