You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.7 KiB
Markdown

---
categories:
- Web
- Animation
- Soupboat
cover: sail.jpg
cover_alt: soupboat sailing in norway
date: 05/05/2023
description: Soupboat sailing toward new adventures
git: https://git.xpub.nl/kamo/sail
slug: sail
title: sail
url: https://hub.xpub.nl/soupboat/
---
Small animation for the soupboat homepage, sailing toward new adventuress. The homepage is simple and basic, without much styling or anything. I always felt this latent feeling of reworking it, to make it different. But being a common and shared space I've never had the propper resolve to step in and transform it. To organize something altogether it was difficult because of time and life.
Recently however, we started wondering: what will happen next? What's the future of the Soupboat? Will it stay on and working and firm on its four legs in the studio, to be rebooted from time to time by the next xpub students? Or will it follow the advenutres of the future xpub3 gang?
We will see! In the meanwhile: let's enjoy a simple ASCII art animation of this cutie sailing away.
## Generator??????? Finally!!!
It was my first time using a generator! It's been a while that i wanted to try this structure, but finally found something that could make sense with it.
A generator is something like a function with intermediate steps. Each time you call the function, it will go till the next step, preserving its internal state.
In this particular case I used it for generating the waves pattern of the sea.
The sea layer in the ASCII art is composed of three distinct characters: __`'~__. The script that move the soupboat towards new water keep calling the waves generator to loop through these three symbols and keep repeating the pattern.
Look at the code for more precise documentation!
It was fun!!