-
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e4c118b
commit c916313
Showing
17 changed files
with
83 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
src/main/java/com/marginallyclever/ro3/apps/webcampanel/WebCamPanel.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package com.marginallyclever.ro3.apps.webcampanel; | ||
|
||
import com.github.sarxos.webcam.Webcam; | ||
import com.github.sarxos.webcam.WebcamPanel; | ||
import com.github.sarxos.webcam.WebcamResolution; | ||
|
||
import javax.swing.*; | ||
import java.awt.*; | ||
|
||
public class WebCamPanel extends JPanel { | ||
private final Webcam webcam; | ||
private final WebcamPanel panel; | ||
|
||
public WebCamPanel() { | ||
super(new BorderLayout()); | ||
setName("webcam"); | ||
|
||
webcam = Webcam.getDefault(); | ||
Dimension size = WebcamResolution.QVGA.getSize(); | ||
webcam.setViewSize(size); | ||
|
||
panel = new WebcamPanel(webcam, size, false); | ||
panel.setFPSDisplayed(true); | ||
add(panel, BorderLayout.CENTER); | ||
panel.start(); | ||
panel.pause(); | ||
} | ||
|
||
@Override | ||
public void addNotify() { | ||
super.addNotify(); | ||
panel.resume(); | ||
} | ||
|
||
@Override | ||
public void removeNotify() { | ||
super.removeNotify(); | ||
panel.pause(); | ||
} | ||
} |
8 changes: 5 additions & 3 deletions
8
src/main/resources/com/marginallyclever/ro3/apps/about/about.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
<html><body> | ||
<html> | ||
<body style="padding:10px 10px 10px 10px"> | ||
<h1>Hello, World!</h1> | ||
<p>Welcome to Robot Overlord 3.</p> | ||
<p><a href="">Read the friendly manual</a></p> | ||
<p><a href="https://mcr.dozuki.com/c/Robot_Overlord_3">Read the friendly manual</a></p> | ||
<p><a href="https://discord.gg/VQ82jNvDBP">Discord</a>: join us!</p> | ||
<p><a href="https://github.com/marginallyclever/robot-overlord-app">Github.com</a>: read the source</p> | ||
<p>Created by <a href="https://marginallyclever.com">Marginally Clever Robots</a></p> | ||
</body></html> | ||
</body> | ||
</html> |
Binary file added
BIN
+465 Bytes
src/main/resources/com/marginallyclever/ro3/apps/actions/icons8-add-16-purple.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+235 Bytes
src/main/resources/com/marginallyclever/ro3/apps/actions/icons8-export-16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+237 Bytes
src/main/resources/com/marginallyclever/ro3/apps/actions/icons8-import-16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+249 Bytes
src/main/resources/com/marginallyclever/ro3/apps/actions/icons8-load-16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+333 Bytes
src/main/resources/com/marginallyclever/ro3/apps/actions/icons8-new-16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.98 KB
src/main/resources/com/marginallyclever/ro3/apps/actions/icons8-save-16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+275 Bytes
src/main/resources/com/marginallyclever/ro3/apps/actions/icons8-settings-16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+508 Bytes
src/main/resources/com/marginallyclever/ro3/apps/icons8-stop-16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.