WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Uniform default chain colors #47

@AntonOresten

Description

@AntonOresten

Currently, default chain color is the :jet colorscheme, with a linear range from 0 to 1.
When there are multiple chains, it is much more nicer if they're each one solid color.
Something like:

colormap = [:royalblue, :violet, :limegreen, :chocolate1]
colors = [repeat([i-1], l) / (length(colormap)-1) for (i, l) in enumerate(length.(structure))]
ribbon!(scene, structure; colors, colormap)

or the RGB values directly such that changing the colormap doesnt mess up the colors.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions