Yash Parikh - Lesson Day 10 - Color Code
Popcorn Hack 1
1️⃣ Which image format is best for logos and transparency?
PNG because it supports transparency and is lossless, meaning it doesn’t lose quality when compressed. JPEG is lossy and not ideal for logos.
2️⃣ Which format loses quality to make the file size smaller?
JPEG is a lossy format that reduces file size by discarding some image data, leading to a loss in quality. PNG is lossless and retains all image data, making it larger but higher quality.
3️⃣ Which format is used for simple animations, like memes?
GIF is used for simple animations and supports transparency, but it has a limited color palette (256 colors) and can result in lower quality compared to PNG or JPEG. APNG is an alternative that supports more colors and better quality.
Popcorn Hack 2
What does this Base64 string decode to? U1Q=
This is a Base64 encoded string. When decoded, it translates to “ST”. Base64 is a method of encoding binary data into ASCII text, often used for embedding images or files in web pages or emails.
Homework Hack
🎨 Homework Hack: Make a Mood Board with Hex Colors
Pick 5 colors that represent your mood or personality. Use a site like coolors.co to find and copy their hex codes. Create a simple HTML page that shows each color in a styled div block.
🎨 My Mood Board
Homework Hack 2
🎒 Homework Hack: Turn Your Profile Pic into Base64!
Go to base64-image.de Upload a small image of yourself (or a favorite icon). Copy the Base64 string it generates. Create a simple HTML file and embed your image inline.