Skip to content

Instantly share code, notes, and snippets.

View SebastianWeide's full-sized avatar

SebastianWeide

View GitHub Profile
@SebastianWeide
SebastianWeide / cloud.js
Last active December 21, 2017 10:54 — forked from blockspring/cloud.js
D3 Wortwolke
// Word cloud layout by Jason Davies, http://www.jasondavies.com/word-cloud/
// Algorithm due to Jonathan Feinberg, http://static.mrfeinberg.com/bv_ch03.pdf
(function() {
function cloud() {
var size = [256, 256],
text = cloudText,
font = cloudFont,
fontSize = cloudFontSize,
fontStyle = cloudFontNormal,
fontWeight = cloudFontNormal,
<!DOCTYPE HTML PUBLIC>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="robots" content="noindex, nofollow">
<meta name="googlebot" content="noindex, nofollow">
<script type="text/javascript" src="/js/lib/dummy.js"></script>