-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfriends.html
More file actions
55 lines (50 loc) · 1.27 KB
/
friends.html
File metadata and controls
55 lines (50 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>friends</title>
<style>
* { margin: 0; padding: 0; }
body {
background-color: #111;
color: #C0C;
display: flex;
flex-direction: column;
justify-content: center;
margin: 0 auto;
font-family: monospace;
font-size: 16px;
width: 48em;
overflow: hidden;
}
</style>
</head>
<body>
<script src='js/pixi.js'></script>
<script>
var app = new PIXI.Application( window.innerHeight * (9/16), window.innerHeight, {backgroundColor: 0x1099bb});
document.body.appendChild(app.view);
var style = new PIXI.TextStyle({
fontFamily: 'Arial',
fontSize: 22,
fontStyle: 'italic',
fontWeight: 'bold',
letterSpacing: 5,
fill: ['#9999ff', '#00ff99'], // gr adient
stroke: '#4a1850',
strokeThickness: 5,
dropShadow: true,
dropShadowColor: '#000000',
dropShadowAngle: Math.PI / 6,
dropShadowDistance: 2,
wordWrap: true,
wordWrapWidth: app.renderer.width
});
var richText = new PIXI.Text('A E S T H E T I C', style);
richText.anchor.set(0.5)
richText.x = app.renderer.width / 2
richText.y = app.renderer.height / 2
app.stage.addChild(richText);
</script>
</body>
</html>