In answer to blade's first github issue: can blade be used with mapbox and markercluster? Sure, the mrhyde library underenath should work with almost any js library. Here's my port of the example code.
This is the beginning of a boids simulation. This minimal skeleton just shows how to have multiple objects updated and drawn using d3 + strokes.
Example of a boids simulation using strokes + d3. This version adapted from the boids example in Sean Luke's excellent java based mason simulation library.
A messy experiment. There will be bugs.
p5.js block
Port of desgin sketch from 1997 to p5.js and viewable via bl.ocks.org
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ctypes | |
# Path to location of libcudart | |
_CUDA = "/usr/local/cuda/lib/libcudart.dylib" | |
cuda = ctypes.cdll.LoadLibrary(_CUDA) | |
cuda.cudaMemGetInfo.restype = int | |
cuda.cudaMemGetInfo.argtypes = [ctypes.c_void_p, ctypes.c_void_p] | |
cuda.cudaGetErrorString.restype = ctypes.c_char_p |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
license: mit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
license: mit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
license: mit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
license: mit |