Skip to content

Commit 6543817

Browse files
authored
fill svg graphic #77
1 parent 1287d2e commit 6543817

File tree

5 files changed

+74
-9
lines changed

5 files changed

+74
-9
lines changed

README.md

Lines changed: 32 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -174,15 +174,29 @@ having `tape-flow` on your root or body to flow color thru the whole page
174174
<button class="tape-flap tape-flow">Cancel</button>
175175
```
176176

177-
## [imagine](https://developer.mozilla.org/CSS/gradient)
177+
## [imagine](https://s9a.page/tape#imagine)
178+
179+
180+
### [gradients](https://developer.mozilla.org/Web/CSS/gradient)
178181

179182
```css
180-
:root {
181-
--tape-remix: radial-gradient(coral, violet);
182-
}
183+
--tape-remix: linear-gradient(
184+
var(--tape-play),
185+
var(--tape-loud),
186+
var(--tape-luvu),
187+
var(--tape-bluv)
188+
);
183189
```
184190

185-
## [filter](https://developer.mozilla.org/CSS/filter)
191+
```css
192+
--tape-remix: radial-gradient(coral, violet);
193+
```
194+
195+
```css
196+
--tape-remix: conic-gradient(plum, coral, pink);
197+
```
198+
199+
## [filter](https://developer.mozilla.org/Web/CSS/filter)
186200

187201
```css
188202
:focus {
@@ -206,7 +220,19 @@ having `tape-flow` on your root or body to flow color thru the whole page
206220
}
207221
```
208222

223+
## [fill](https://developer.mozilla.org/Web/CSS/fill)
224+
225+
[`fill`](https://s9a.page/tape#fill) [SVG shapes](https://s9a.page/tape/tape.svg) [with colors](#palette)
226+
227+
```svg
228+
<circle r="111" fill="var(--tape-play)" />
229+
```
230+
231+
```svg
232+
<circle r="333" class="tape-play" />
233+
```
234+
209235
## [producing](https://s9a.page/tapes)
210236
### [hello tape](https://s9a.page/hellotape) <br> [bye shame](https://webmural.com/shame) <br> [lettuce remixit](https://s9a.page) <br> [lifeforce](https://webmural.com/milf) <br> [lavatory](https://webmural.com/tlfr)
211237

212-
### [octopus](https://octopus.boo) [moonchild](https://github.com/s9a/tape/commit/5072a403673a6f93a156527acc7fdeef01404ba4)
238+
### [octopus](https://octopus.boo) [moonchild](https://github.com/s9a/tape/commit/5072a403673a6f93a156527acc7fdeef01404ba4)

demo.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ a:hover {
6161
}
6262

6363
/* N.E.R.D. ÷ MCR */
64+
.omg:hover { cursor: grab }
6465
.mold { font: unset }
6566
.bold { font-weight: bold }
6667
.moan { margin: auto }
@@ -105,4 +106,4 @@ html {
105106
.vol0 { font-size: 0 }
106107
.vol1 { font-size: var(--vol1) }
107108
.vol2 { font-size: var(--vol2) }
108-
.vol3 { font-size: var(--vol3) }
109+
.vol3 { font-size: var(--vol3) }

index.html

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ <h1 class="vol3 paz">
167167
<a class="tape-flow bold" href="https://webmural.com/airwaves">mo̊sh</a>
168168
</figcaption>
169169
<p class="vol2 moan" style="--tape-play:deeppink">
170-
<a class="tape-loud" style="--tape-loud:#bea" href="https://s9a.page/mochi">fi̊ller</a><br>
170+
<a class="tape-loud" style="--tape-loud:#ec0" href="https://s9a.page/mochi">player</a><br>
171171
<a class="tape-play" href="https://s9a.page/c11y">ampuller</a><br>
172172
<a class="tape-bluv" href="https://s9a.page/v11y" style="--tape-bluv:orchid">
173173
spi̊ller
@@ -179,7 +179,24 @@ <h1 class="vol3 paz">
179179
</p>
180180
</figure>
181181

182+
<figure class="tape-bluv tape-flow pad moan nemo">
183+
<figcaption class="vol3 moby">
184+
<a class="tape-flow bold" href="https://s9a.page/illbang">fill</a>
185+
</figcaption>
186+
<a href="tape.svg" class="tape-bluv omg" aria-label="tape">
187+
<svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 800 500">
188+
<title>tape sampler</title>
189+
<rect class="tape-bluv" x="0" width="800" height="500" />
190+
<circle class="tape-play" cx="220" cy="250" r="360" />
191+
<circle class="tape-watt" cx="220" cy="250" r="120" />
192+
<circle class="tape-loud" cx="220" cy="250" r="60" />
193+
<circle class="tape-bluv" cx="580" cy="250" r="120" />
194+
<circle class="tape-luvu" cx="580" cy="250" r="60" />
195+
</svg>
196+
</a>
197+
</figure>
198+
182199
<footer class="tape-flow moan nemo vol3 bold" style="--tape-play:deeppink">
183200
<a class="tape-play" href="https://s9a.page">s9a</a>
184201
<a href="https://github.com/s9a/tape">tḁpe</a>
185-
</footer>
202+
</footer>

tape.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
color: var(--tape-blaq) !important;
3737
background-color: var(--tape-mix) !important;
3838
background-image: var(--tape-remix);
39+
fill: var(--tape-mix);
3940
filter: var(--tape-filter);
4041
}
4142

tape.svg

Lines changed: 20 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)