Essentials
Getting Started
Initial Setup
Platform
Product Overview
Artist Guides
Project Setup and Artist Tools
The fx(hash) API
Generative Art with fx(params)
Browser Based Generative Art
Releasing your Project
In this page we provide an overview of the technologies used for the creation of web pages, how they are leveraged for the purpose of creation fxhash projects, and also have a first look at the structure of an fxhash project.
Generative art can be created with a variety of different programming languages and with many different software tools. However, the generative artworks created for fxhash need to be able to run in the browser, meaning that they need to be self-contained web projects. A generative artwork on fxhash is thus simply a web page that displays generative graphics.
For this purpose, we need to have a basic understanding of the essential components that make up a webpage and how they work together to display a generative artwork in the browser.
The three core technologies that power the modern internet today are:
Since an fxhash project is at its core just a website that displays generative art, it essentially makes use of HTML, CSS and Javascript to do so. At the bare minimum, an fx(hash) project consist out of an index.html file, a css stylesheet, a Javascript file that contains the artist's code, as well as a necessary Javascript file provided by fxhash that makes it compatible with the platform:
<aside> <img src="https://prod-files-secure.s3.us-west-2.amazonaws.com/f9d1e984-50ed-4650-a543-95d2b6c0ba90/d19e8179-9d3f-425f-9926-415c6ee8f1a6/fx_doc-icon_warning_001.png" alt="https://prod-files-secure.s3.us-west-2.amazonaws.com/f9d1e984-50ed-4650-a543-95d2b6c0ba90/d19e8179-9d3f-425f-9926-415c6ee8f1a6/fx_doc-icon_warning_001.png" width="40px" /> It is necessary that every fxhash project has such an index.html file - it sits at the helm of the project and references all other files that are involved in the creation of the artwork.
</aside>
<aside>
<img src="https://prod-files-secure.s3.us-west-2.amazonaws.com/f9d1e984-50ed-4650-a543-95d2b6c0ba90/76de99fa-cbf2-404e-9d12-0acf020a6b07/fx_doc-icon_notes_001.png" alt="https://prod-files-secure.s3.us-west-2.amazonaws.com/f9d1e984-50ed-4650-a543-95d2b6c0ba90/76de99fa-cbf2-404e-9d12-0acf020a6b07/fx_doc-icon_notes_001.png" width="40px" /> It actually doesn't matter what this file is called, it just needs to be referenced correctly within the index.html file. Alternatively, the script could also be placed directly inside the index.html within a <script></script>
tag.
Moreover, it is often the case that larger projects split their code over several script files, which is also perfectly fine. In that scenario the index.html file just needs to reference all of these files.
</aside>
In the next section we'll have a look at the fxhash boilerplate - a starting template that already includes all of these files and essentially constitutes the quickest way to get started building a generative token for fxhash, without you having to manually create these files.
← Previous
Next →