From hjiang at xtu.edu.cn Wed Nov 6 12:31:52 2024 From: hjiang at xtu.edu.cn (hjiang) Date: Wed, 6 Nov 2024 19:31:52 +0800 Subject: [pgf-tikz] =?utf-8?q?Hope_to_introduce_support_for_=22/ShadingTy?= =?utf-8?q?pe_5=22_and_=22/FunctionType_0=22?= Message-ID: <6B98DD61222A1733+FCD21BE9-1CF9-4564-8422-3D85C802F879@xtu.edu.cn> Hello every one, Firstly, I learned from AI that currently pgf doesn't support "/FunctionType 0" sampling function, but this is very useful when drawing tech charts. Can this feature be added? Secondly,?for complex gradients, ?/ShadingType 5? is very useful, will pgf have an official implementation for that type of shading in the future? Such as the example in the Adobe manual book of Smooth Shading? "/inch {72 mul} def /DeviceRGB setcolorspace %Define the shading dictionary << /ShadingType 5 /ColorSpace /DeviceRGB /VerticesPerRow 2 /DataSource [ 1 inch 1 inch 1 0 1 %Magenta at bottom left 7 inch 1 inch 0 1 1 %Cyan at bottom right 2 inch 10 inch 0 1 1 %Cyan at top left 8 inch 10 inch 1 0 1 %Magenta at top right ] shfill showpage" best! hjiang hjiang at xtu.edu.cn -------------- next part -------------- An HTML attachment was scrubbed... URL: From henri at henrimenke.de Wed Nov 6 15:49:14 2024 From: henri at henrimenke.de (Henri Menke) Date: Wed, 06 Nov 2024 15:49:14 +0100 Subject: [pgf-tikz] Hope to introduce support for "/ShadingType 5" and "/FunctionType 0" In-Reply-To: <6B98DD61222A1733+FCD21BE9-1CF9-4564-8422-3D85C802F879@xtu.edu.cn> References: <6B98DD61222A1733+FCD21BE9-1CF9-4564-8422-3D85C802F879@xtu.edu.cn> Message-ID: On Wed, 2024-11-06 at 19:31 +0800, hjiang via pgf-tikz wrote: > Hello every one, > Firstly, I learned from AI that currently pgf doesn't support > "/FunctionType 0" sampling function, but this is very useful when > drawing tech charts. Can this feature be added? > Secondly,?for complex gradients, ?/ShadingType 5? is very useful, > will pgf have an official implementation for that type of shading in > the future? Such as the example in the Adobe manual book of Smooth > Shading? There is already a discussion on GitHub for this: https://github.com/pgf-tikz/pgf/discussions/1365 As to whether anyone will ever have time to implement this, I can't say. Cheers, Henri > "/inch {72 mul} def > /DeviceRGB setcolorspace > %Define the shading dictionary > << > /ShadingType 5 > /ColorSpace /DeviceRGB > /VerticesPerRow 2 > /DataSource [ > 1 inch 1 inch 1 0 1 %Magenta at bottom left > 7 inch 1 inch 0 1 1 %Cyan at bottom right > 2 inch 10 inch 0 1 1 %Cyan at top left > 8 inch 10 inch 1 0 1 %Magenta at top right > ] > shfill > showpage" > best! > hjiang > hjiang at xtu.edu.cn