{"id":"nightcycle/editable-clothing-util","name":"editable-clothing-util","scope":"nightcycle","platform":"roblox","description":"Translate classic clothing / pants into EditableImages like so: https://x.com/Nightcycle_LLC/status/1815294030747472354","version":"0.1.6","latest":"0.1.6","versions":["0.1.0","0.1.2","0.1.3","0.1.4","0.1.5","0.1.6"],"license":"Apache-2.0","licenseRating":"safe","licenseCaveats":["Modified files must carry a notice of changes. If the package ships a NOTICE file, its attributions must be preserved.","License identified from the packaged LICENSE file; the manifest declared none."],"licenseVerified":true,"dependencies":{"nightcycle/draw":{"version":"^1.0.6","alias":"Draw"},"nightcycle/maid":{"version":"^2.0.0","alias":"Maid"}},"integrity":"d24b81dccc0d350d4360ac2b93b84a2006fa52089d92f1848d2ab6b034ff9d52","likes":0,"downloads":0,"install":"forest install nightcycle/editable-clothing-util","url":"https://forest.dev/p/roblox/nightcycle/editable-clothing-util","files":"https://api.forest.dev/ai/package/roblox/nightcycle/editable-clothing-util/files","readme":"## Install\r\nWith [Wally](https://github.com/UpliftGames/wally): `nightcycle/editable-clothing-util`\r\n\r\n## Usage\r\n```luau\r\nlocal character: Model\r\nlocal shirt: Shirt\r\n\r\n\r\nlocal clothingImage: EditableImage = Util.loadClothingImageAsync(shirt)\r\n\r\n-- modifying the source clothingImage is much faster than modifying the images post application\r\n\r\nUtil.apply(character, clothingImage, Enum.BodyPartR15.RightUpperArm)\r\nUtil.apply(character, clothingImage, Enum.BodyPartR15.RightLowerArm)\r\nUtil.apply(character, clothingImage, Enum.BodyPartR15.RightHand)\r\nUtil.apply(character, clothingImage, Enum.BodyPartR15.LeftUpperArm)\r\nUtil.apply(character, clothingImage, Enum.BodyPartR15.LeftLowerArm)\r\nUtil.apply(character, clothingImage, Enum.BodyPartR15.LeftHand)\r\nUtil.apply(character, clothingImage, Enum.BodyPartR15.LowerTorso)\r\n\r\n-- if you want it to change while on the character, you need to use the applied EditableImage\r\nlocal upperTorsoImage: EditableImage? = Util.apply(character, clothingImage, Enum.BodyPartR15.UpperTorso)\r\nassert(upperTorsoImage)\r\n\r\n-- if you want it to match the underlying skin color, use this:\r\nlocal skinColor: Color3 = Color3.new(0.5,0.5,0.5)\r\nUtil.bakeSkinTone(upperTorsoImage, skinColor)\r\n```\r\n","readmeTruncated":false}