Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
<!DOCTYPE html>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<script type="text/javascript" src=""></script>
<script type="text/javascript">
$(document).ready(function () {
var canvas = document.getElementById('myCanvas');
var ctx = canvas.getContext('2d');
var a0 = 2.5;
var x0 = 0.1;
var a = a0;
function loop(){
var x = x0;
a += 0.001;
for(var i=0; i<100; ++i){
x = a*x*(1-x);
for(var i=0; i<100; ++i){
x = a*x*(1-x);
setTimeout(loop, 0);
} );
<div style="margin: 0 auto; width: 910px;">
<canvas id="myCanvas" width="900" height="600" style="border: solid 1px;"></canvas><br />
<a href="">ソースコード</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.