Getting rough edges in sprites

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
FamuFamu
Regular
Posts: 111
Joined: Thu Oct 11, 2012 4:52 pm
Contact:

Getting rough edges in sprites

#1 Post by FamuFamu »

I've been trying to emulate Pixel Art with my sprites, so I made them small and tried enlarging them with Ren'Py commands, but anytime I try that, Ren'Py smooths the edges of the images (Both, at the edge of the image itself and on the edge between colors). I can see the use of this, but I want to turn this off and make images get rough edges, is there a way to do this?

Thanks in advance.

Asceai
Eileen-Class Veteran
Posts: 1258
Joined: Fri Sep 21, 2007 7:13 am
Projects: a battle engine
Contact:

Re: Getting rough edges in sprites

#2 Post by Asceai »

im.Scale and im.FactorScale can do this if you set bilinear=False.

User avatar
FamuFamu
Regular
Posts: 111
Joined: Thu Oct 11, 2012 4:52 pm
Contact:

Re: Getting rough edges in sprites

#3 Post by FamuFamu »

Yep, that was it. I was actually going to edit the post to clarify that I was looking for a Nearest Neighbor Interpolation but you already replied.

Thanks, Asceai!

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot]