summaryrefslogtreecommitdiff
path: root/Base/res
diff options
context:
space:
mode:
authorMacDue <macdue@dueutil.tech>2022-11-01 21:25:36 +0000
committerLinus Groh <mail@linusgroh.de>2022-11-01 23:07:05 +0000
commitd6334dcab15556f7133fa85db7b55b1ecc40da7d (patch)
tree821d5dcbf6ac2d81449bfed26c8e0abeb017b3c3 /Base/res
parentfdcc73d4b17ae886aa5609745fb4be982f1f40dc (diff)
downloadserenity-d6334dcab15556f7133fa85db7b55b1ecc40da7d.zip
Base: Add some `conic-gradient()` HTML examples
Diffstat (limited to 'Base/res')
-rw-r--r--Base/res/html/misc/gradients.html23
1 files changed, 23 insertions, 0 deletions
diff --git a/Base/res/html/misc/gradients.html b/Base/res/html/misc/gradients.html
index dda64e15d7..368585b993 100644
--- a/Base/res/html/misc/gradients.html
+++ b/Base/res/html/misc/gradients.html
@@ -139,6 +139,24 @@
.grad-double-position {
background-image: linear-gradient(to right,red 20%, orange 20% 40%, yellow 40% 60%, green 60% 80%, blue 80%)
}
+
+ .grad-conic-1 {
+ background-image: conic-gradient(red, orange, yellow, green, blue);
+ }
+
+ .grad-conic-2 {
+ background-image: conic-gradient(from 0.25turn at 50% 30%, #f69d3c, 10deg, #3f87a6, 350deg, #ebf8e1);
+ }
+
+ .grad-conic-3 {
+ background-image: conic-gradient(from 3.1416rad at 10% 50%, #e66465, #9198e5);
+ }
+
+ .grad-conic-4 {
+ background-image: conic-gradient(
+ red 6deg, orange 6deg 18deg, yellow 18deg 45deg,
+ green 45deg 110deg, blue 110deg 200deg, purple 200deg);
+ }
</style>
</head>
<body>
@@ -179,6 +197,11 @@
<div class="box grad-repeat-3"></div>
<b>Double-position color stops</b><br>
<div class="box grad-double-position"></div>
+ <b>Conic gradients</b><br>
+ <div class="box grad-conic-1"></div>
+ <div class="box grad-conic-2"></div>
+ <div class="box grad-conic-3"></div>
+ <div class="box grad-conic-4"></div>
</body>
<script>
const boxes = document.querySelectorAll(".box, .rect");