GithubHelp home page GithubHelp logo

complexity_explorable_stripes's Introduction

Example Complexity Explorable

Here's an example of the Complexity Explorables, this one is the essence of Keith Haring's Mexican hat that illustrates pattern formation by local excitation and long range inhibition.

All explorables have the same basic structure of code bits.

index.html

This file is essentially the header that loads fonts externally and some other stuff:

CSS

  1. <link rel="stylesheet" type="text/css" href="widget.v2.2.css" />: the styles for the widget
  2. <link rel="stylesheet" type="text/css" href="styles.css" />: the styles for the page
  3. <link rel="stylesheet" type="text/css" href="stripes.css" />: the styles for this particular explorable

header javascript

  1. <script type="text/javascript" src="d3.v4.min.js"></script> : the version of D3js used in this explorable
  2. <script type="text/javascript" src="widget.v2.2.js"></script> : the js code for the widgets

Container

The js code for the explorable (see below) inserts the display and the control boxes into the DOM here:

<div class="toolbox">
	<div id="stripes-display" class="toolbox display-panel"></div>
	<div id="stripes-controls" class="toolbox control-panel"></div>
</div>

Explorable Code

Finally the explorable code is loaded here:

<script type="text/javascript" src="stripes.js"></script>

and executed

Installation

  1. make a directory
  2. add all the files to it
  3. launch a local http server from that directory

complexity_explorable_stripes's People

Contributors

dirkbrockmann avatar

Stargazers

Daniel Nevermann avatar  avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.