Skip to content

Instantly share code, notes, and snippets.

@archonic
archonic / index.html
Created Mar 13, 2015
Paper.js Fluid Simulation with particles (doesn't do a great job of it)
View index.html
<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;