Can you use code to craft a tartan that tells your story?
First, who are you?
Tartan is part of Scotland's identity, and is worn by millions of people around the world. It has a long history, but it's still used in modern Scotland today.
But what's behind a particular tartan? Who decides what colours to include? How is it woven?
Lochcarron of Scotland
In this activity, you're going to design your own tartan using JavaScript code.
Once you're done, you can add your tartan to our Scottish Connections Tartan Gallery for other learners around the world. They'll see your tartan, and hear your story.
Whether you're Scottish, part of Scotland's global community, or live somewhere completely different you are welcome to be part of our tartan story. Anyone can design their own tartan, and anyone can wear tartan. It's for everyone.
Tartan is a patterned fabric.. Do you recognise this type of pattern?
Buchanan Modern Tartan Fabric, Lochcarron of Scotland
This is tartan, it's a pattern formed of symmetrical stripes that repeat. The vertical lines are called the warp, and the horizontal the weft. Together, they make tartan weave. The exact sequence of colours and stripe widths is called the threadcount, and the repeated pattern is known as the sett.
Scotland has been designing, producing, and wearing tartan for centuries. It's traditionally woven from wool, then stitched into clothing and accessories.
In Scotland, you'd traditionally pick a tartan based on your family, your clan. Your clan tartan would represent where you came from, what family you belong to.
Tartan isn't just for Scots. Anyone can design and wear tartan.
Today, there's thousands of tartans representing all sorts of groups and interests. Football teams, companies, and even Shrek have their own tartans.
It's up to you what tartan you wear, you don't need to wear the tartan of your family, or clan. Most people choose a tartan they like the look of!
Sometimes, the colours and patterns in a tartan design can tell a story. People might choose certain colours or designs because they have significance to their group. For example, a long blue stripe could represent a river or loch near where the group lives. A red stripe might represent courage, or a local flower.
There are no fixed rules the same colours can mean different things in different tartans. These choices are part of the story the designer chooses to tell.
Scotland has a tartan register: The official Scottish Register of Tartans. It's a collection of over 7,000 different tartan designs. Each tartan in the register has a name and some notes, these explain the story of the tartan and the choices the designer made. It doesn't need to be long or complicated, but it helps other people understand your tartan design.
Look at these tartan designs and the stories they tell:
Notes: "This tartan celebrates Hello Kitty. The tartan's colour palette is intended to be a representation of Hello Kitty's persona and wardrobe: white is for her face; yellow for her nose; pink for her ribbon and blue for her clothing."
Notes: "The ScotRail tartan was inspired by the rhythm, form and connectivity of the nation's rail network. The colour palette is rooted in the ScotRail's brand colours of blue and white. The double white lines are intended to represent the rail tracks in its physical form and mirror the shape of the iconic Saltire, each one joined to the next, representing the communities connected by Scotland's Railway."
Notes: "Designed to celebrate Tartan Day, 6th April 2002, in New York City. The colours represent the streets and buildings of New York, with green for Central Park, blue for the rivers (Hudson, Harlem & East) that surround Manhattan and two black stripes to honour the memory of the twin towers of the World Trade Centre destroyed on '9/11'."
Now it's time to think about the design of your tartan. First of all, who is your tartan going to represent? What is the group or team you're part of that you want to design a tartan for?
For example: "I'm designing a tartan for the Aberfeldy Biker Crew"
Tell us about your group, what does it do? What connects you? How would your group use your tartan?
For example: "We're a friendly team of cyclists who travel across the UK taking part in competitions. We want a tartan we can use on our cycling shorts"
You need to pick five colours for your tartan that are significant to your group. You can get the exact colour you want by using this colour picker.
Each colour you choose will have a HEX code. This is a special code used by computer programs to describe an exact colour. For example, #005EB8 is the exact shade of blue from Scotland's saltire flag. Keep a note of these HEX codes for later, you'll need to add them to the code. The JavaScript code will use them to draw your tartan on the screen.
Tell us your five colours. For each colour tell us what that colour represents.
For example: #800080 represents the heather growing on the hills we cycle past.
Lastly, you can edit the position of the stripes (warp and weft) too. Tell of one way you could use a pattern to tell your group's story.
For example: "I want to have 6 thin lines beside one another, representing the 6 members of our club cycling side by side"
It's time to code your tartan! Edit the code below.
We'll be showing off some of the amazing tartan designs created by pupils from around the world in our live lesson!
Special guests from Lochcarron of Scotland will be on hand to critique your designs, and answer questions about how tartan is made. With a heritage dating back to 1892, Lochcarron of Scotland is the world’s leading manufacturer of tartan.
Join us on Thursday 11th June at 14:00 or 16:00 BST.