## Pen Settings

### CSS

#### Vendor Prefixing

Any URL's added here will be added as `<link>`s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

### JavaScript

#### JavaScript Preprocessor

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

Any URL's added here will be added as `<script>`s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

### Behavior

#### Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

#### Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

#### Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

## HTML

```              ```
<canvas id=canvas ></canvas>
```
```
!

## CSS

```              ```
body, canvas {
margin: 0;
overflow: hidden;
background-color:black;
}
```
```
!

## JS

```              ```
//forked by https://codepen.io/strangerintheq/pen/NWKLyeB

let rnd = Math.random;
let w = canvas.width = innerWidth;
let h = canvas.height = innerHeight;

let ctx = canvas.getContext("2d");
ctx.translate(w/2, h/2);
ctx.textAlign = 'center';
ctx.textBaseline = "middle";

let pts = Array(99).fill(0).map(() => {
let d = rnd()*Math.PI*2;
let size = rnd()*22+11;
return {
size,
dir: d,
targetDir: d,
speed: 1+rnd()/size*11,
x: rnd()*w - w/2,
y: rnd()*h - h/2
}
})

function draw(t) {
requestAnimationFrame(draw);
ctx.fillStyle = "#00000012";
ctx.fillRect(-1e5,-1e5,2e5,2e5);
ctx.fillStyle = "white";
pts.forEach(p => {
p.dir += (p.targetDir-p.dir)/10
p.x += Math.cos(p.dir) * p.speed;
p.y += Math.sin(p.dir) * p.speed;
if (rnd()>0.99&& !p.inside) p.targetDir = rnd()*Math.PI*2;
if (p.x<-w/2) p.x = w/2;
else if (p.x>w/2) p.x = -w/2;
else if (p.y<-h/2) p.y = h/2;
else if (p.y>h/2) p.y = -h/2;
let inside = p.x*p.x + p.y*p.y<40000;
if (inside && !p.inside) {
p.inside = true;
p.targetDir += Math.PI;
}
p.inside = inside;
ctx.translate(p.x, p.y)
ctx.rotate(p.dir + Math.PI/2);
ctx.font = `\${p.size}px Arial`;
ctx.fillText('A', 0, 0)
ctx.rotate(-p.dir - Math.PI/2 );
ctx.translate(-p.x, -p.y)
});
}

requestAnimationFrame(draw);
```
```
!
999px
{"ft_lang_label":"__label__en","ft_lang_prob":0.66020244,"math_prob":0.8171886,"size":2661,"snap":"2020-24-2020-29","text_gpt3_token_len":764,"char_repetition_ratio":0.1076402,"word_repetition_ratio":0.004950495,"special_character_ratio":0.31003383,"punctuation_ratio":0.23343849,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.970473,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-07-04T23:02:36Z\",\"WARC-Record-ID\":\"<urn:uuid:b5820815-cf63-4602-8049-2a52e18d3fec>\",\"Content-Length\":\"78382\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:6baa4845-2c20-4f53-8d60-241da969a9d7>\",\"WARC-Concurrent-To\":\"<urn:uuid:9d731393-5782-47ee-9e0c-8dd466e06a1a>\",\"WARC-IP-Address\":\"104.16.176.44\",\"WARC-Target-URI\":\"https://codepen.io/ambassador/pen/bGbQVdL\",\"WARC-Payload-Digest\":\"sha1:DNMHRS2YNV2ZJJ6EHWAKN2MIQNOGIBC6\",\"WARC-Block-Digest\":\"sha1:YLAUJBMQQATIUXM6DY26ITUHRYMUCISV\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-29/CC-MAIN-2020-29_segments_1593655886706.29_warc_CC-MAIN-20200704201650-20200704231650-00069.warc.gz\"}"}