Press "Enter" to skip to content

Day: May 5, 2018

An Exhibition of Lost Paintings

An Exhibition of Lost Paintings is a continuation of week2’s Artwork Label Generator.



In Artwork Label Generator, I wrote different vocabulary lists for objects and expressions by my own. This time, I actively use existing sets in Corpora, in order to create more diverse and unpredictable descriptions than previous ones.

At the same time, I brought minimum amount of lists written by me to add bit more control over the description; limiting the type of outcome to only paintings was also for the same reason.

Similar with the previous artwork label generator, An exhibition of Lost Paintings also involves many random choices. However, this time it will try to make reasonable storyline using synonyms and “fixed” random choices in certain parts.

The “fixed” random choice will be used to generate something that must be consistent over a painting. For example, if it’s a portrait painting: the main character in the painting should be mentioned consistently in the description. If the character has synonyms to refer, they will be fully used as well. However, such aspects as adjectives, verbs, and events don’t have to be repeated, and rather encouraged to be randomized every moment.

Therefore, those “fixed” random choices only run once in every painting, while many other random choices run in every sentence and word. In this way, it can make a coherent shape of art description without losing surprise of unexpected randomness.

  • Codes for generating main title, introduction, and 6 random paintings. The painting can be either still life, landscape, or portrait.

  • Codes for description and chained words (followed by main character).

  • Codes for still life painting.

  • Codes for landscape painting.

  • Codes for portrait painting.

  • Display everything in string, with goodbye message.

The following slides are one set of generated text into a presentation format. They’re bit more elaborated along with some use of imagery.

GitHub link


Makeup Guru

A makeup tutorial generator using xkcd color vectors. Original text is from one of the tutorials in Deck of Scarlet.

In order to generate makeup tutorial, I used two data resources from Corpora: xkcd color data for shadow colors, and Pokemon name list for the brand name of shadow brush.

Because the part that is most actively using color vocabulary in many makeup tutorials is where the person applies shadow, I’ll pick the part that she introduces this awesome shadow product – and collect 6 similar colors to it (there’s some integer typo in the screenshots; it should be 6, not 10).

Here is the output:

Another output:


So, I’m going to start off the eyeshadow called, Soft blue.
It’s this lavender blue shade right here.
And using a flat brush, I will apply it all over my eyelid area.
Next, I’m switching to a smaller blending brush.
This is the Pansage 708 brush, and I’ll use it to blend out the edges of that periwinkle shade into the crease and, you know, make it look really nice and seamless.
And see how that eyeshadow kind of blended into more of like a cornflower blue shade?
When it’s fading, it looks more perrywinkle rather than dodger blue. It’s really nice.
It looks like I used many different colors when I just used one single eyeshadow.