sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #21709
[Bug 1220575] Re: [1.0.1] Linux: Matching preview not working
Just had a look at the score formula again and I think this is the
correct version:
int span = w - margin * 2;
for (int i = 0; i < span; i++) {
float score = (float) i / span;
g.setColor(getScoreColor(score));
g.drawLine(margin + i, y1, margin + i, y2);
}
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1220575
Title:
[1.0.1] Linux: Matching preview not working
Status in Sikuli:
In Progress
Bug description:
This is a Linux only issue (java version "1.7.0_25")
Open IDE editor, click a image saved before. Click "Matching
Preview", it will not work. You can got error message from console:
Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: Color parameter outside of expected range: Alpha
at java.awt.Color.testColorValueRange(Unknown Source)
at java.awt.Color.<init>(Unknown Source)
at org.sikuli.ide.PatternSimilaritySlider.getScoreColor(PatternSimilaritySlider.java:59)
at org.sikuli.ide.PatternSimilaritySlider.paintComponent(PatternSimilaritySlider.java:37)
at javax.swing.JComponent.paint(Unknown Source)
... more
To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1220575/+subscriptions
References