Rectangle Tubes
-
Prerequisite
Introduction
A rectangle tube is a tube with 4 side faces, so it looks like a rectangle frame from the top:
https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/ab483e40-a745-418a-903a-ac0590df2721.gif" width="470" style="border-radius: 5px; border: 1px solid #29622d;">
The rectangle tube can be very handy in creating frames or walls. Although you can create a similar shape by composing 4 thin boxes together, it is much easier to create it using this one block:
https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/8d258aca-51e8-46b9-891b-eaf1982b6093.png" width="1000" style="filter: drop-shadow(0.35rem 0.35rem 0.4rem rgba(0, 0, 0, 0.5));">
Let’s go through the parameters:
Color Selection
This input is fairly standard, so we will skip it here.
Size in X and Y Directions and Height in Z Direction
These 3 numbers work in the same way as the X/Y/Z sizes of a box.
Cap Type
Similar to tubes, you can control whether the top and bottom of the rectangle tube are covered up or open:
https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/9669ce3d-0c1c-45fd-abf6-360df022b9cc.gif" width="800" style="border-radius: 5px; border: 1px solid #29622d;">
Note that even with both top and bottom caps, the inside of the rectangle tube is still empty.
Sides
You can use less than 4 sides for the rectangle tube as well. You can even show 0 sides, but choose to show the top or bottom cap.
https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/1176e790-115d-449a-9759-fe090b32374a.gif" width="800" style="border-radius: 5px; border: 1px solid #29622d;">
Name
The last input is the name of the object. If it is left blank, a random ID will be assigned.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login