<commit_before>---
layout: post
title:  "Spinning lights with canvas and HTML5"
date:   2018-05-25 10:00:00 -0800
categories: R rcorr knitr
---

## Spinning lights. Full example [here](/examples/spinning_lights)

<canvas id="myCanvas" width="500" height="500"></canvas>
<script>
  function rotateLine(x1, y1, x2, y2, angle) {
    var x3 = Math.cos(angle) * (x2 - x1) - Math.sin(angle) * (y2 - y1) + x1;
    var y3 = Math.sin(angle) * (x2 - x1) + Math.cos(angle) * (y2 - y1) + y1;<commit_msg>Update categories<commit_after>---
layout: post
title:  "Spinning lights with canvas and HTML5"
date:   2018-05-25 10:00:00 -0800
categories: HTML5 canvas
---

## Spinning lights. Full example [here](/examples/spinning_lights)

<canvas id="myCanvas" width="500" height="500"></canvas>
<script>
  function rotateLine(x1, y1, x2, y2, angle) {
    var x3 = Math.cos(angle) * (x2 - x1) - Math.sin(angle) * (y2 - y1) + x1;
    var y3 = Math.sin(angle) * (x2 - x1) + Math.cos(angle) * (y2 - y1) + y1;
{'fraction_non_alphanumeric': 0.17868020304568527, 'fraction_numerical': 0.08426395939086294, 'mean_word_length': 3.6729857819905214, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5996671', 'n_tokens_mistral': 431, 'n_tokens_neox': 390, 'n_words': 103}