Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 06F63200B95 for ; Tue, 27 Sep 2016 18:48:27 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 058DF160AD2; Tue, 27 Sep 2016 16:48:27 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 4B892160AB9 for ; Tue, 27 Sep 2016 18:48:26 +0200 (CEST) Received: (qmail 40904 invoked by uid 500); 27 Sep 2016 16:48:25 -0000 Mailing-List: contact dev-help@edgent.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@edgent.apache.org Delivered-To: mailing list dev@edgent.apache.org Received: (qmail 40893 invoked by uid 99); 27 Sep 2016 16:48:25 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Sep 2016 16:48:25 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 003D4C2041 for ; Tue, 27 Sep 2016 16:48:25 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -5.144 X-Spam-Level: X-Spam-Status: No, score=-5.144 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-1.124] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id ele2iqsk2hpe for ; Tue, 27 Sep 2016 16:48:23 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id 070DB60D31 for ; Tue, 27 Sep 2016 16:48:21 +0000 (UTC) Received: (qmail 39336 invoked by uid 99); 27 Sep 2016 16:48:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Sep 2016 16:48:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id B9F682C2A68 for ; Tue, 27 Sep 2016 16:48:20 +0000 (UTC) Date: Tue, 27 Sep 2016 16:48:20 +0000 (UTC) From: "Queenie Ma (JIRA)" To: dev@edgent.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (EDGENT-179) console: oplet coloring gradients "too close" MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 27 Sep 2016 16:48:27 -0000 [ https://issues.apache.org/jira/browse/EDGENT-179?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15526708#comment-15526708 ] Queenie Ma commented on EDGENT-179: ----------------------------------- I will be opening a PR with the following changes: * I looked at the existing defined oplets, updated the current list, and assigned static colors * For non-org.apache.edgent defined oplets, generate a random color that is perceptually different than all assigned colors: *# Convert the assigned oplet colors from Hex to RGB to XYZ to LAB *# Generate a random color using the golden ratio conjugate in the RGB color space (use bright, saturated colors for non-org.apache.edgent defined oplets) *# Convert RGB to XYZ *# Convert XYZ to LAB *# For each assigned oplet color, compute Delta E between the two LAB colors (new and assigned) *# If Delta E >= 15 for all pairs of colors, consider the color to be different enough from the other colors A few resources that I referenced: * http://martin.ankerl.com/2009/12/09/how-to-create-random-colors-programmatically/ * http://zschuessler.github.io/DeltaE/learn/ * http://www.easyrgb.com/?X=MATH > console: oplet coloring gradients "too close" > --------------------------------------------- > > Key: EDGENT-179 > URL: https://issues.apache.org/jira/browse/EDGENT-179 > Project: Edgent > Issue Type: Bug > Components: Console > Reporter: Dale LaBossiere > Assignee: Queenie Ma > Priority: Minor > Attachments: EDGENT-179_oplet_colors.png, Screen Shot 2016-09-19 at 2.22.00 PM.png > > > The oplet color generator ends up yielding two light purple-ish colors for two different kinds of (adjacent) oplets and one can't tell them apart. One is a Sink the other is a subtype of Peek - a StreamScope. > I was seeing this in a ParallelBalancedRecipe app of mine. I can provide it if really necessary to repro/improve this. -- This message was sent by Atlassian JIRA (v6.3.4#6332)