Dynamic render images when visiting webpage at /.

This commit is contained in:
2018-10-09 20:01:43 -07:00
parent 639c50a3de
commit 67ba66bdf7
8 changed files with 1331 additions and 52 deletions

View File

@@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<title>Noise test</title>
<link rel="stylesheet" type="text/css" href="perlin.css" media="screen" />
<link rel="stylesheet" type="text/css" href="style.css" media="screen" />
</head>
<body>
{% for s in specimens %}
@@ -11,8 +11,8 @@
{% for np in s.params %}
<figure>
<p>
<a href="{{ np.image_name() }}">
<img width="{{ np.width }}" height="{{ np.height }}" src="{{ np.image_name() }}?t={{ render_time }}"/>
<a href="{{ np.big_url()|safe }}">
<img width="{{ np.width }}" height="{{ np.height }}" src="{{ np.url()|safe }}"/>
</a>
<figcaption>{{ np.compact_string() }}</figcaption>
</figure>