Chrome loads external SVG files in an existing SVG element with the svg:use
element, but animations do not play...
#!/usr/local/Cellar/python3/3.2.3/bin/python3.2 | |
from pypeg2 import * | |
import datetime | |
numbers = [ | |
"nul", | |
"een", | |
"twee", | |
"drie", |
import re, fileinput | |
import pyPEG | |
from pyPEG import parse, parseLine | |
from pyPEG import keyword, _and, _not, ignore | |
import datetime | |
#pyPEG.print_trace = True | |
numbers = [ |
<!doctype html> | |
<head> | |
<meta charset="utf-8"> | |
<title>HvA - Waiting Time</title> | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> | |
</head> | |
<body> | |
<h1></h1> | |
<p>Add queue length to node <strong>w44508814</strong>:</p> | |
<table> |
This example demonstrates how to create a gradient that follows a stroke. This technique is sometimes used to indicate directionality along a curved edge, such as with hierarchical edge bundling.
To start, take any SVG path element and uniformly sample points along the path using getPointAtLength. (This method can also be used for path tweening.) Then, for each segment between adjacent points, compute the miter joint via line-line intersection. Lastly fill each segment by interpolating the start and end colors, here green to red, using the normalized length t along the path. Although each segment is a constant color, there are many segments to give the appearance of a continuous gradient.
This example uses a thin stroke in addition to filling the segments. This avoids antialiasing artifacts due to most
# encoding: UTF-8 | |
require 'json' | |
require 'fileutils' | |
ARGV.select{ |file| [".json", ".geojson"].include? File.extname(file) }.each do |file| | |
basename = File.basename(file, File.extname(file)) | |
geojson = JSON.parse(File.open(file).read) | |
if geojson.has_key? "features" | |
require 'json' | |
require 'fileutils' | |
ARGV.select{ |file| [".json", ".geojson"].include? File.extname(file) }.each do |file| | |
basename = File.basename(file, File.extname(file)) | |
geojson = JSON.parse(File.open(file).read) | |
if geojson.has_key? "features" | |
# Create directory if not exists: | |
unless Dir.exists?(basename) |