justaline-android icon indicating copy to clipboard operation
justaline-android copied to clipboard

can i add more colors to drawing pattern?

Open shubhwicked opened this issue 7 years ago • 8 comments

i am trying to add more color to draw line over it, i have already added it, but when i am changing the color, then paint change the color of all the drawing. I know it is due to every time it draw whole path, how can i fix color for each path object, any help would be very thankful.

shubhwicked avatar Jun 04 '18 11:06 shubhwicked

I would add the data the same way the line width data is passed to the shader in the renderer

And then in the shader use that data to manipulate the line

HalfdanJ avatar Jun 11 '18 14:06 HalfdanJ

Hi @shubhwicked @HalfdanJ , just want to know how to manipulate the line with different color? Thanks.

Clark-Lin avatar Jul 16 '18 06:07 Clark-Lin

@Clark-Lin Are . you able to find the solution. I am searching same for android and ios

PrashantKT avatar Apr 25 '19 09:04 PrashantKT

Hey @shubhwicked I'm also facing the same problem! Have you found any solution? @HalfdanJ can you give some more detail, Please...

msk4862 avatar Jul 19 '19 19:07 msk4862

I guess, I havent done it yet, need to check my code, as it is too old. will check it, and let you guys know soon.

shubhwicked avatar Jul 25 '19 13:07 shubhwicked

@shubhwicked okay, I will also try to solve it.

msk4862 avatar Jul 25 '19 14:07 msk4862

@shubhwicked @msk4862 @HalfdanJ did you find any solution for this?

krunalpaliwal avatar Dec 17 '21 06:12 krunalpaliwal

@shubhwicked @msk4862 @HalfdanJ did you find any solution for this?

Yes

You can modify shaders

PrashantKT avatar Dec 18 '21 13:12 PrashantKT