{"action":"created","issue":{"url":"https://api.github.com/repos/CindyJS/CindyJS/issues/217","repository_url":"https://api.github.com/repos/CindyJS/CindyJS","labels_url":"https://api.github.com/repos/CindyJS/CindyJS/issues/217/labels{/name}","comments_url":"https://api.github.com/repos/CindyJS/CindyJS/issues/217/comments","events_url":"https://api.github.com/repos/CindyJS/CindyJS/issues/217/events","html_url":"https://github.com/CindyJS/CindyJS/issues/217","id":131855969,"number":217,"title":"Colour of dependent points","user":{"login":"kranich","id":7249754,"avatar_url":"https://avatars.githubusercontent.com/u/7249754?v=3","gravatar_id":"","url":"https://api.github.com/users/kranich","html_url":"https://github.com/kranich","followers_url":"https://api.github.com/users/kranich/followers","following_url":"https://api.github.com/users/kranich/following{/other_user}","gists_url":"https://api.github.com/users/kranich/gists{/gist_id}","starred_url":"https://api.github.com/users/kranich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kranich/subscriptions","organizations_url":"https://api.github.com/users/kranich/orgs","repos_url":"https://api.github.com/users/kranich/repos","events_url":"https://api.github.com/users/kranich/events{/privacy}","received_events_url":"https://api.github.com/users/kranich/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/CindyJS/CindyJS/labels/Cinderella%20compat.","name":"Cinderella compat.","color":"0052cc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-06T13:33:30Z","updated_at":"2016-02-09T21:49:05Z","closed_at":null,"body":"Dependent points are drawn in darker colours in Cinderella but not in CindyJS.\r\n\r\nI am pretty sure this has been mentioned somewhere already (maybe on the mailing list) but I could not find a duplicate issue."},"comment":{"url":"https://api.github.com/repos/CindyJS/CindyJS/issues/comments/182092675","html_url":"https://github.com/CindyJS/CindyJS/issues/217#issuecomment-182092675","issue_url":"https://api.github.com/repos/CindyJS/CindyJS/issues/217","id":182092675,"user":{"login":"gagern","id":190759,"avatar_url":"https://avatars.githubusercontent.com/u/190759?v=3","gravatar_id":"","url":"https://api.github.com/users/gagern","html_url":"https://github.com/gagern","followers_url":"https://api.github.com/users/gagern/followers","following_url":"https://api.github.com/users/gagern/following{/other_user}","gists_url":"https://api.github.com/users/gagern/gists{/gist_id}","starred_url":"https://api.github.com/users/gagern/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gagern/subscriptions","organizations_url":"https://api.github.com/users/gagern/orgs","repos_url":"https://api.github.com/users/gagern/repos","events_url":"https://api.github.com/users/gagern/events{/privacy}","received_events_url":"https://api.github.com/users/gagern/received_events","type":"User","site_admin":false},"created_at":"2016-02-09T21:49:05Z","updated_at":"2016-02-09T21:49:05Z","body":"Urgh! I just realized that things are more complicated than I anticipated. Cinderella does darken dependent points only if their color is chosen from the palette. For colors defined by a color vector, e.g. using a script line like `P.color = [1,1,0]`, the color is *not* dimmed even if the point in question is dependent. So how do we deal with this?\r\n\r\n1. Export the final color for every point, and either leave `defaultAppearance.dimDependent = 1` by default or explicitly set that value when exporting.\r\n2. Export a per-element `dimDependent` setting, and explicitly set this to `false` if the global default is `true` but a given point has a non-palette color.\r\n3. Export the palette index and do the same palette magic in CindyJS as well. Required if we want to support the `color` inspectable property, since that represents a palette index.\r\n\r\nIf we go with 2., then #231 may need some extension to support that. And all three require some work on the Cinderella side. Note that a non-palette color currently becomes red on export, which is certainly incorrect."}}