(Hopefully) finish generator page
This commit is contained in:
parent
4616812f2d
commit
c7cc398bb8
2 changed files with 20 additions and 11 deletions
|
|
@ -232,7 +232,7 @@
|
|||
<figure>
|
||||
<img
|
||||
src="../assets/image/example_qrcode_distorted.png"
|
||||
alt="The same image as before, except with a glitchy filer applied. The first effect applies to bright edges, which get paintet pink and blue to their left and right hand side respectively. The second effect distorts the image by offsetting parts of the image horizontally by seemingly random yet somewhat osscilating amounts."
|
||||
alt="The same image as before, except with a glitchy filer applied. The first effect applies to bright edges, which get painted pink and blue to their left and right hand side respectively. The second effect distorts the image by offsetting parts of the image horizontally by seemingly random yet somewhat osscilating amounts."
|
||||
/>
|
||||
<figcaption>Example image with visual glitches applied.</figcaption>
|
||||
</figure>
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
type="text/css"
|
||||
href="../assets/style/styleguide.css"
|
||||
/>
|
||||
<title>Document</title>
|
||||
<title>Image Generator</title>
|
||||
</head>
|
||||
|
||||
<body style="height: 100vh">
|
||||
|
|
@ -98,15 +98,24 @@
|
|||
</ul>
|
||||
</nav>
|
||||
<main>
|
||||
<div class="alert">
|
||||
<i data-icon="warning"></i>
|
||||
<h1>Image Generator</h1>
|
||||
<p>
|
||||
<strong>Work in progress</strong>
|
||||
This style guide is still under development.<br />
|
||||
Not all resources may be available yet, explanations and examples
|
||||
may be missing and things may change without notice.
|
||||
We wanted images to (optionally) have a glitchy, distorted appearance.
|
||||
To achieve this, we apply two effects to an image. Firstly, bright
|
||||
vertical edges in an image are highlighted by adding a parallel line
|
||||
in our primary color to their left and in our secondary color to their
|
||||
right hand side. Secondly, the image gets distorted by offsetting
|
||||
different parts of the image horizontally, seemingly by random
|
||||
amounts, but it is actually somewhat osscilating.
|
||||
</p>
|
||||
<p>
|
||||
This page utilizes a small bit of Javascript to add an SVG filter to
|
||||
an image of your choice. The resulting image will then be previewed
|
||||
further below and can be downloaded using a button at the end of the
|
||||
page. Not all browsers' canvas implementations generate the same
|
||||
outcome, especially firefox tends to create wrong results, so we
|
||||
recommend using a chromium based browser for creating these exports.
|
||||
</p>
|
||||
</div>
|
||||
<div class="generator">
|
||||
<div>
|
||||
<input id="file_input" type="file" name="image" accept="image/*" />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue