The following is a template SVG file (the data is contained in another file) I created as a personal project to help me focus my thoughts and my work. The svg is a self-contained graphic file containing a transparent background and a transparent foreground. You can use it as is, or you can use it to add interactive elements to your art.
The svg file contains a transparent background and a transparent foreground. To create a transparent foreground, first make a transparent background by using any transparent color that you like, then use the alpha channel on the transparent foreground to add transparency. You can add other transparent channels, but I found it easiest to use this transparency channel, since I already had a background fill and I was using the alpha channel on the foreground. Of course, you can also create a transparent background by using a transparent gradient.
In my opinion, the “alpha channel on the foreground” has always been one of my favorite parts of this process. It makes the foreground transparent to the fullest extent.
I like to add transparency to my backgrounds, but I don’t find it’s as intuitive as it could be. But I’ve learned that the alpha channel, on the foreground, is very forgiving. It’s very forgiving because the alpha channel can be used to override transparency in other areas. For example you could put an image of a building in your foreground and have the alpha channel on the foreground override transparency as you create a blue sky image in your background.
I’ve been using transparent backgrounds for years now, but I’ve never really understood the benefits until I started using it in the context of alpha channels. I love that when I’m using an alpha channel it lets me create a background with a solid color without having to worry about transparency; it’s like a blank canvas.
That’s right, a blank canvas. When you use transparency in your foreground image you also use transparency in your background. So for example, you could have an image of your sky that looks like a black-blue-white sky image, and then have an image of your foreground image that looks like an image that your camera is looking at, but you have no transparency to that foreground image. That basically creates a transparent image when you load in your background image.
This simple technique is often overlooked but it’s important to understand, especially when you’re making graphics for your website. The first step to creating graphics for your website is getting them “just right.” When you make graphics, you have to create images that work not only on a computer screen, but also on a mobile phone. When you’re creating your image, you can’t just make it work on everything, you have to make sure it works on all the devices you have.
The good news is that you can make graphics for your website with just the right amount of code. But it may be a bit more messy than you think. Sometimes you can have a lot of your own code that you can modify and rewrite to fit the needs of your audience. But it’s not all that easy.
Thats a great point. When youre working on a website, you are often working with code that you just don’t know. I like to think of myself as a super-programmer, but I can’t get my head around the fact that I am also a website designer. It doesn’t feel real to me.