Skip to content

Commit

Permalink
update example naming
Browse files Browse the repository at this point in the history
  • Loading branch information
tiborpilz committed Aug 23, 2023
1 parent a62ed8b commit 3ef6858
Show file tree
Hide file tree
Showing 11 changed files with 9 additions and 595 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
dist/
public/
4 changes: 2 additions & 2 deletions example/avenga.js → example/colorborder.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ function paintBezier(ctx, geom, perturbation, progress) {
ctx.fill()
}

class AvengaPainter {
class ColorBorderPainter {
static get inputProperties() { return ['--progress'] }

paint(ctx, geom, properties) {
Expand All @@ -89,4 +89,4 @@ class AvengaPainter {
}
}

registerPaint('avenga', AvengaPainter)
registerPaint('colorborder', ColorBorderPainter)
2 changes: 1 addition & 1 deletion example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<footer class="avenga-footer"></footer>
<footer class="color-footer"></footer>
<script src="script.js"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion example/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ CSS.registerProperty({
initialValue: 0.0,
})

CSS.paintWorklet.addModule('avenga.js');
CSS.paintWorklet.addModule('colorborder.js');
6 changes: 3 additions & 3 deletions example/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
height: 200px;
}

.avenga-footer {
.color-footer {
--progress: 0;
background-image: paint(avenga);
background-image: paint(colorborder);
position: absolute;
left: 0;
right: 0;
Expand All @@ -14,6 +14,6 @@
transition: --progress 1s ease;
}

.avenga-footer:hover {
.color-footer:hover {
--progress: 1.0;
}
2 changes: 1 addition & 1 deletion presentation/99_fin.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# References
# Fin
92 changes: 0 additions & 92 deletions public/example/avenga.js

This file was deleted.

13 changes: 0 additions & 13 deletions public/example/index.html

This file was deleted.

8 changes: 0 additions & 8 deletions public/example/script.js

This file was deleted.

19 changes: 0 additions & 19 deletions public/example/style.css

This file was deleted.

Loading

0 comments on commit 3ef6858

Please sign in to comment.