• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Martomate / TriPaint / 9275511596

28 May 2024 07:51PM UTC coverage: 29.682% (+1.8%) from 27.877%
9275511596

push

github

Martomate
Updated to Scala 3.4 and MUnit 1.0

2 of 11 new or added lines in 9 files covered. (18.18%)

430 existing lines in 38 files now uncovered.

401 of 1351 relevant lines covered (29.68%)

0.3 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/main/scala/tripaint/model/effects/RandomNoiseEffect.scala
1
package tripaint.model.effects
2

3
import tripaint.model.{Color, ImageGrid}
4
import tripaint.model.coords.GridCoords
5

6
import scalafx.scene.paint.Color as FXColor
7

8
class RandomNoiseEffect(min: Color, max: Color) extends Effect {
UNCOV
9
  override def name: String = "Random noise"
×
10

11
  override def action(images: Seq[GridCoords], grid: ImageGrid): Unit = {
×
12
    val lo = min.toFXColor
×
UNCOV
13
    val hi = max.toFXColor
×
14

15
    for (imageCoords <- images) {
×
16
      val image = grid(imageCoords).get.storage
×
17
      for (coords <- image.allPixels) {
×
UNCOV
18
        image.setColor(
×
19
          coords,
20
          FXColor.hsb(
×
21
            math.random() * (hi.hue - lo.hue) + lo.hue,
×
22
            math.random() * (hi.saturation - lo.saturation) + lo.saturation,
×
UNCOV
23
            math.random() * (hi.brightness - lo.brightness) + lo.brightness,
×
24
            1
25
          )
26
        )
27
      }
28
    }
29
  }
30
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc