Skip to content

Commit

Permalink
Improving default scanline color
Browse files Browse the repository at this point in the history
  • Loading branch information
defano committed May 30, 2018
1 parent 1ab28b1 commit deaf715
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import java.awt.*;
import java.awt.image.BufferedImage;
import java.util.ArrayList;
import java.util.Stack;

/**
* Performs a "flood fill" (sometimes called "seed fill" or "spill paint") of the image with a provided paint or
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public abstract class AbstractPaintSurface extends JComponent implements PaintSu
private final List<SurfaceInteractionObserver> interactionListeners = new ArrayList<>();
private Dimension surfaceDimensions = new Dimension();
private double scanlineThreadhold = 6.0;
private Color scanlineColor = Color.WHITE;
private Color scanlineColor = new Color(0xF5, 0xF5, 0xF5);
private AlphaComposite scanlineComposite = AlphaComposite.getInstance(AlphaComposite.SRC_OVER);
private SurfaceScrollController surfaceScrollController = new DefaultSurfaceScrollController(this);

Expand Down
1 change: 0 additions & 1 deletion src/main/java/com/defano/jmonet/tools/EraserTool.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import com.defano.jmonet.canvas.Scratch;
import com.defano.jmonet.model.PaintToolType;
import com.defano.jmonet.tools.base.AbstractPathTool;
import com.defano.jmonet.tools.base.StrokedCursorPathTool;

import java.awt.*;
Expand Down
5 changes: 0 additions & 5 deletions src/main/java/com/defano/jmonet/tools/PaintbrushTool.java
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
package com.defano.jmonet.tools;

import com.defano.jmonet.canvas.PaintCanvas;
import com.defano.jmonet.canvas.Scratch;
import com.defano.jmonet.model.PaintToolType;
import com.defano.jmonet.tools.base.AbstractPathTool;
import com.defano.jmonet.tools.base.StrokedCursorPathTool;
import com.defano.jmonet.tools.util.CursorFactory;
import io.reactivex.Observable;
import io.reactivex.disposables.Disposable;

import java.awt.*;
import java.awt.geom.Line2D;
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/com/defano/jmonet/tools/util/CursorFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
import java.awt.geom.Line2D;
import java.awt.image.BufferedImage;

/**
* A utility for creating custom tool cursors.
*/
public class CursorFactory {

/**
Expand Down

0 comments on commit deaf715

Please sign in to comment.