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
int grid_s=10; | |
boolean mouse_flg=false; | |
boolean button_flg=false; | |
int grid(int p1) { | |
int p; | |
p = p1-p1%grid_s; | |
return p; | |
} | |
int mX() { | |
int p; |
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
class Map{ | |
String path,mapDataLine=""; | |
String[] mapDataArray,mapData; | |
int ofset,sizeX,sizeY,mode=0; | |
color[] c = {#FFFFFF,#000080,#008000,#800000,#008080,#800080,#808000,#888888,#0000ff,#00ff00,#ff0000,#00ffff,#ffff00,#ff00ff,#ffffff}; | |
PGraphics maps; | |
Map(PGraphics _map,String _path){ | |
path=_path; | |
maps=_map; | |
} |
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
#include <iostream> | |
#include <fstream> | |
#include <vector> | |
#include <iterator> | |
#include <algorithm> | |
#include <map> | |
#include <boost/function.hpp> | |
#include <boost/lambda/lambda.hpp> | |
#include <boost/lambda/if.hpp> | |
#include <boost/lambda/loops.hpp> |
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
{ | |
"meta":{ | |
"manifest_version":1, | |
"locale_version": "1.0", | |
"locale_name": "日本語", | |
"locale_type": "jp-JP", | |
"locale_last_updated": "2019-10-18 12:00:00 UTC", | |
"locale_author_name": "ノードティック", | |
"locale_author_email": "nodetics@gmail.com", | |
"locale_source_url": "https://nodetics.com/feedbro/" |
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
color[][] pixelArray; | |
int boxLength; | |
color fillColor = color(0, 255, 0); | |
ArrayList<myPoint> checkedPoints; | |
ArrayList<myPoint> pointsToAdd; | |
int count; | |
//255-white |
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
// Toxi's flood fill code, updated to modern Java and Processing and to my taste... :-P | |
// Also generalized to work on any PImage | |
// http://processing.org/discourse/yabb2/YaBB.pl?num=1138719727 | |
FloodFill1 myFloodFill ; | |
// | |
void setup() { | |
size(900, 900); | |
noFill(); | |
strokeWeight(23); |
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
class Wiring{ | |
protected color lineColor; | |
protected int lineStartPosX,lineStartPosY,lineEndPosX,lineEndPosY,deg,_ElineStartPosX,_ElineStartPosY,_ElineEndPosX,_ElineEndPosY; | |
Wires wires=new Wires(color(255,0,0)); | |
Wiring(color _lineColor){ | |
lineColor=_lineColor; | |
} | |
void addWire(int _lineStartPosX,int _lineStartPosY,int _lineEndPosX,int _lineEndPosY){ | |
translate(_lineStartPosX,_lineStartPosY); | |
float degFloat = degrees(atan2(_lineEndPosY-_lineStartPosY,_lineEndPosX-_lineStartPosX))+180; |
OlderNewer