Comments on Recreate the Stack Overflow logo
Parent
Recreate the Stack Overflow logo
Originally from Somewhere Else. I thought I'd continue making more drawing challenges here now that I discovered it.
Make the Stack Overflow logo using the following criteria:
The tray:
- Make a gray tray shaped like a bracket facing upwards using the following RGB values: 188, 187, 187 (#bcbbbb)
- The dimensions of the tray by pixels:
The sticks:
- Make 5 orange sticks using the following RGB values: 244, 128, 36 (#f48024)
- Each stick has a dimension of 44 by 9 pixels.
- The gap between the tray and the bottom stick is 8 pixels:
The sticks' angles:
These angles are relative to the horizontal position which is zero degrees.
- 1st stick (bottom): 0°
- 2nd stick (second-to-bottom): 10°
- 3rd stick (middle): 25°
- 4th stick (second-to-top): 40°
- 5th stick (top): 50°
The entire image:
- The image should look like the image given.
- The entire dimensions of the whole image is 82 by 97 pixels as a minimum.
Stick positions (x, y
):
These coordinates refer to the top-left points of each stick. The system used is the top-left point of the entire surface being (0, 0), and the numbers increasing as we go down and to the right. We also assume that the left part of the tray is at the leftmost possible point, i.e. at the far bottom left. Feel free to transcribe this into your system.
- 1st stick: 17, 71
- 2nd stick: 19, 51
- 3rd stick: 27, 31
- 4th stick: 40, 13
- 5th stick: 55, 0
Rules:
-
The image should apply all descriptions from above.
-
Standard loopholes are forbidden.
-
Shortest code in bytes wins.
Post
Vector, 893 Bytes
<vector xmlns:android="http://schemas.android.com/apk/res/android"android:width="474dp"android:height="355dp"android:viewportWidth="474" android:viewportHeight="355"><path android:fillColor="#bcbbbb"android:pathData="m187 227h59v9h-59v-9z"/><path android:fillColor="#bcbbbb"android:pathData="m187 210h7v26h-7v-26z"/><path android:fillColor="#bcbbbb"android:pathData="m239 210h7v26h-7v-26z"/><path android:fillColor="#f48024"android:pathData="m197 221h40v3h-40v-3z"/><path android:fillColor="#f48024"android:pathData="m197.4 206 39.6 9.3 -0.3 2.6 -39.6 -9.3 0.3 -2.6z"/><path android:fillColor="#f48024"android:pathData="m200.9 192 36.1 17.2 -0.8 1.8 -36.1 -17.2 0.8 -1.8z"/><path android:fillColor="#f48024"android:pathData="m207.3 176 30.7 27.4 -1.3 1.6 -30.7 -27.4 1.3 -1.6z"/><path android:fillColor="#f48024"android:pathData="m217.5 165 25.5 32.6 -1.5 1.4 -25.5 -32.6 1.5 -1.4z"/></vector>
I don't have any idea where you can use the code. I usually used the code in Android Studio XML. See the code better way..
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="474dp"
android:height="355dp"
android:viewportWidth="474"
android:viewportHeight="355">
<path
android:fillColor="#bcbbbb"
android:pathData="m187 227h59v9h-59v-9z" />
<path
android:fillColor="#bcbbbb"
android:pathData="m187 210h7v26h-7v-26z" />
<path
android:fillColor="#bcbbbb"
android:pathData="m239 210h7v26h-7v-26z" />
<path
android:fillColor="#f48024"
android:pathData="m197 221h40v3h-40v-3z" />
<path
android:fillColor="#f48024"
android:pathData="m197.4 206 39.6 9.3 -0.3 2.6 -39.6 -9.3 0.3 -2.6z" />
<path
android:fillColor="#f48024"
android:pathData="m200.9 192 36.1 17.2 -0.8 1.8 -36.1 -17.2 0.8 -1.8z" />
<path
android:fillColor="#f48024"
android:pathData="m207.3 176 30.7 27.4 -1.3 1.6 -30.7 -27.4 1.3 -1.6z" />
<path
android:fillColor="#f48024"
android:pathData="m217.5 165 25.5 32.6 -1.5 1.4 -25.5 -32.6 1.5 -1.4z" />
</vector>
1 comment thread