No, I want to test if the drawing touches a rectangle.
I have a group of red rectangles and blue rectangles, and I want to test if the blue rectangles touched the drawing.
the drawing and rectangles are in a ZStack, and the drawing's canvas is set to transparent so it looks like the drawing is done ON to the grid of rectangles. From there, I want to test if the drawing, at ANY point is in contact with one or more of the blue rectangles. Hope this will make me clear.
Post
Replies
Boosts
Views
Activity
DAMN THATS CRAZY MAN THANKS SO MUCH
oh, thanks
I am actually referencing an image and trying to recreate the same color in the image, but do you think I should just ignore it? Thank you for your response to my question, I appreciate it a lot.
also, when I use digital color meter to scan your photo, it gives me 201, 135, 123
never mind I got the same result again :(
YOU ARE A GENIUS OH MY GOD THANK YOU SO MUCH!!!
import SwiftUI
let darkorange = Color(red: 0.835294117647059, green: 0.513725490196078, blue: 0.470588235294118)
var body: some View {
Rectangle()
.foregroundStyle(darkorange)
}
I wanted Red 213, Green 131, Blue 120
However, with the code above, I got Red 202, Green 135, Blue 123