Skip to content

Instantly share code, notes, and snippets.

@archonic
archonic / index.html
Created March 13, 2015 21:57
Paper.js Fluid Simulation with particles (doesn't do a great job of it)
<html>
<head>
<title>Fluid simulation with balls</title>
<script type="text/javascript" src="paper-full.js"></script>
<!-- Define inlined PaperScript associate it with myCanvas -->
<script type="text/paperscript" canvas="myCanvas">
// Ball variables
radius = 20;
totalBalls = 100;