Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compact color table args #1436

Open
cyrush opened this issue Dec 19, 2024 · 0 comments
Open

compact color table args #1436

cyrush opened this issue Dec 19, 2024 · 0 comments

Comments

@cyrush
Copy link
Member

cyrush commented Dec 19, 2024

Current color table args format:

          color_table: 
            name: "blue"
            control_points: 
              - 
                type: "rgb"
                position: 0.0
                color: [1.0, 0.0, 0.0]
              - 
                type: "rgb"
                position: 0.5
                color: [0.0, 1.0, 0.0]
              - 
                type: "rgb"
                position: 1.0
                color: [1.0, 1.0, 1.0]
              - 
                type: "alpha"
                position: 0.0
                alpha: 0.0
              - 
                type: "alpha"
                position: 1.0
                alpha: 1.0

also, support suggested compact color table args format:

          color_table: 
            name: "blue"
            control_points: 
               r: [1.0, 0.0, 1.0]
               g: [0.0, 1.0, 1.0]
               b: [0.0, 0.0, 1.0]
               a: [0.0, 0.5, 1.0]
               position: [ 0.0, 0.5, 1.0]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant