How to scale a stroke and keep position at center.
red -- original stroke
blue -- after scaling using
red -- original stroke
blue -- after scaling using
Code:
stroke.scale(0.5, 0.5)
Python fu: Vector stroke scaling
|
« Next Oldest | Next Newest »
|
Messages In This Thread |
Python fu: Vector stroke scaling - by awan - 08-24-2018, 04:04 PM
RE: Python fu: Vector stroke scaling - by Ofnuts - 08-24-2018, 04:57 PM
RE: Python fu: Vector stroke scaling - by awan - 08-24-2018, 06:01 PM
RE: Python fu: Vector stroke scaling - by Ofnuts - 08-24-2018, 07:18 PM
RE: Python fu: Vector stroke scaling - by awan - 08-25-2018, 04:38 AM
RE: Python fu: Vector stroke scaling - by Ofnuts - 08-25-2018, 08:16 AM
|