![]() ![]() If you want I can show the function I made. I need to use the picture for image processing later so I can't have any other color except for my red & green value. I tested it a little bit and I found out that smaller circles take longer to process than bigger circles. In my photoshop screenshot below, it looks like there's black border too. If you just want a solid color, just add a solid color fill layer. Now add your background on a layer beneath. For example, a rectangle starting from the point (0,0) with width 2 and height 1, blue colored and with no border is coded as: rectangle (‘Position’, 0 0 2 1. You can apply finishing touches with handy editing tools. Or just click anywhere in the document with your selection tool to deselect it. Or press the keyboard shortcut Ctrl+D on a Windows PC or Command+D on a Mac. This effectively makes the entire rectangle a single color. Fotor will automatically remove the white background on your photos after a few seconds. To remove a selection outline when you’re done with it, go up to the Select menu in the Menu Bar and choose Deselect. The layer mask does not erase/delete anything, it just defines what parts of the layer should be transparent (this becomes important in a bit). Instead of forcing the edge to have the same color, you can prescribe it to have NO color at all. ![]() I also tried making my own function but it looks ugly and much worse: the framerate drops from 50 (if I don't call the function) to 30 fps (if I do call the function). Now add a layer mask (in the layers panel its the rectangle with a circle in it). I already Googled it, but I haven't found anything for Pygame surfaces yet. The circle on the surfaces changes size every frame so I have to recalculate the new surfaces every frame. I don't want the surface to be circle shaped, I don't think that's possible, but I want that the surface doesn't have blank columns on the left and right and that it doesn't have any blank rows on the top and the bottom. Now I want to remove the transparent border around the image so the circle exactly fits into the image. Here are some example images (I took a screenshot in Photoshop so you can clearly see the transparency and the size of the images): But there's a different sized circle drawn on each of them, so the circle doesn't exactly fit the image. I have got some surfaces in Pygame with a transparent background. In this Photoshop Basics tutorial, learn how to combine multiple vector shapes in interesting ways using the Add, Subtract, Intersect and Exclude options. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |