mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
Removed non-ASCII chars from PShapeSVG.java
This commit is contained in:
@@ -74,21 +74,21 @@ public class JavaScriptEditor extends Editor
|
||||
|
||||
public JMenu buildSketchMenu ()
|
||||
{
|
||||
JMenuItem startServerItem = Base.newJMenuItem("Start server", 'R');
|
||||
JMenuItem startServerItem = Base.newJMenuItem("Start Server", 'R');
|
||||
startServerItem.addActionListener(new ActionListener() {
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
handleStartServer();
|
||||
}
|
||||
});
|
||||
|
||||
JMenuItem stopServerItem = new JMenuItem("Stop server");
|
||||
JMenuItem stopServerItem = new JMenuItem("Stop Server");
|
||||
stopServerItem.addActionListener(new ActionListener() {
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
handleStopServer();
|
||||
}
|
||||
});
|
||||
|
||||
JMenuItem copyServerAddressItem = new JMenuItem("Copy server address");
|
||||
JMenuItem copyServerAddressItem = new JMenuItem("Copy Server Address");
|
||||
copyServerAddressItem.addActionListener(new ActionListener(){
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
handleCopyServerAddress();
|
||||
@@ -103,7 +103,7 @@ public class JavaScriptEditor extends Editor
|
||||
// }
|
||||
// );
|
||||
|
||||
JMenuItem setServerPortItem = new JMenuItem("Set server port");
|
||||
JMenuItem setServerPortItem = new JMenuItem("Set Server Port");
|
||||
setServerPortItem.addActionListener(new ActionListener(){
|
||||
public void actionPerformed (ActionEvent e) {
|
||||
handleSetServerPort();
|
||||
@@ -120,7 +120,7 @@ public class JavaScriptEditor extends Editor
|
||||
JMenu menu = new JMenu("JavaScript");
|
||||
JMenuItem item;
|
||||
|
||||
item = new JMenuItem("Playback settings (directives)");
|
||||
item = new JMenuItem("Playback Settings (Directives)");
|
||||
item.addActionListener(new ActionListener() {
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
handleShowDirectivesEditor();
|
||||
@@ -130,7 +130,7 @@ public class JavaScriptEditor extends Editor
|
||||
|
||||
menu.addSeparator();
|
||||
|
||||
item = new JMenuItem("Start custom template");
|
||||
item = new JMenuItem("Start Custom Template");
|
||||
item.addActionListener(new ActionListener() {
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
handleCreateCustomTemplate();
|
||||
@@ -138,7 +138,7 @@ public class JavaScriptEditor extends Editor
|
||||
});
|
||||
menu.add(item);
|
||||
|
||||
item = new JMenuItem("Show custom template");
|
||||
item = new JMenuItem("Show Custom Template");
|
||||
item.addActionListener(new ActionListener() {
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
handleOpenCustomTemplateFolder();
|
||||
|
||||
@@ -5082,7 +5082,8 @@ public class PApplet extends Applet
|
||||
* returned from <b>loadShape()</b> is null.
|
||||
*
|
||||
* ( end auto-generated )
|
||||
* @webref shape:load_displaying
|
||||
*
|
||||
* @webref shape:loading_displaying
|
||||
* @param filename name of the file to load
|
||||
* @see PShape#PShape
|
||||
* @see PGraphics#shape(PShape, float, float, float, float)
|
||||
|
||||
@@ -300,6 +300,7 @@ public class PShape implements PConstants {
|
||||
* joints.
|
||||
*
|
||||
* ( end auto-generated )
|
||||
*
|
||||
* @webref pshape:method
|
||||
* @usage web_application
|
||||
* @brief Enables the shape's style data and ignores the Processing styles
|
||||
@@ -1098,10 +1099,14 @@ public class PShape implements PConstants {
|
||||
* parameter for the <b>size()</b> function as shown in the example above.
|
||||
*
|
||||
* ( end auto-generated )
|
||||
*
|
||||
* @webref pshape:method
|
||||
* @usage web_application
|
||||
* @brief Rotates the shape around the y-axis
|
||||
* @param angle angle of rotation specified in radians
|
||||
* @see PShape#rotate(float)
|
||||
* @see PShape#rotateX(float)
|
||||
* @see PShape#rotateZ(float)
|
||||
*/
|
||||
public void rotateY(float angle) {
|
||||
rotate(angle, 0, 1, 0);
|
||||
|
||||
@@ -652,15 +652,15 @@ public class PShapeSVG extends PShape {
|
||||
break;
|
||||
|
||||
// S - curve to shorthand (absolute)
|
||||
// Draws a cubic Bézier curve from the current point to (x,y). The first
|
||||
// Draws a cubic Bezier curve from the current point to (x,y). The first
|
||||
// control point is assumed to be the reflection of the second control
|
||||
// point on the previous command relative to the current point.
|
||||
// (x2,y2) is the second control point (i.e., the control point
|
||||
// at the end of the curve). S (uppercase) indicates that absolute
|
||||
// coordinates will follow; s (lowercase) indicates that relative
|
||||
// coordinates will follow. Multiple sets of coordinates may be specified
|
||||
// to draw a polybézier. At the end of the command, the new current point
|
||||
// becomes the final (x,y) coordinate pair used in the polybézier.
|
||||
// to draw a polybezier. At the end of the command, the new current point
|
||||
// becomes the final (x,y) coordinate pair used in the polybezier.
|
||||
case 'S': {
|
||||
// (If there is no previous command or if the previous command was not
|
||||
// an C, c, S or s, assume the first control point is coincident with
|
||||
@@ -714,12 +714,12 @@ public class PShapeSVG extends PShape {
|
||||
break;
|
||||
|
||||
// Q - quadratic curve to (absolute)
|
||||
// Draws a quadratic Bézier curve from the current point to (x,y) using
|
||||
// Draws a quadratic Bezier curve from the current point to (x,y) using
|
||||
// (x1,y1) as the control point. Q (uppercase) indicates that absolute
|
||||
// coordinates will follow; q (lowercase) indicates that relative
|
||||
// coordinates will follow. Multiple sets of coordinates may be specified
|
||||
// to draw a polybézier. At the end of the command, the new current point
|
||||
// becomes the final (x,y) coordinate pair used in the polybézier.
|
||||
// to draw a polybezier. At the end of the command, the new current point
|
||||
// becomes the final (x,y) coordinate pair used in the polybezier.
|
||||
case 'Q': {
|
||||
ctrlX = PApplet.parseFloat(pathTokens[i + 1]);
|
||||
ctrlY = PApplet.parseFloat(pathTokens[i + 2]);
|
||||
|
||||
@@ -27,5 +27,5 @@ void draw() {
|
||||
|
||||
// Add a new boid into the System
|
||||
void mousePressed() {
|
||||
flock.addBoid(new Boid(new PVector(mouseX,mouseY),2.0f,0.05f));
|
||||
flock.addBoid(new Boid(new PVector(mouseX,mouseY), 2.0, 0.05));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user