\documentclass{article}
\usepackage{listings}
\usepackage[dvipdfmx]{color}
%Define Colors
\definecolor{gray}{RGB}{102,102,102} %#666666
\definecolor{lightblue}{RGB}{0,102,153} %#006699
\definecolor{lightgreen}{RGB}{102,153,0} %#669900
\definecolor{bluegreen}{RGB}{51,153,126} %#33997e
\definecolor{magenta}{RGB}{217,74,122} %#d94a7a
\definecolor{orange}{RGB}{226,102,26} %#e2661a
\definecolor{purple}{RGB}{125,71,147} %#7d4793
\definecolor{green}{RGB}{113,138,98} %#718a62
\lstdefinelanguage{Processing}{
%keyword1&2&6
morekeywords = [1]{abstract, class, continue, default, enum, extends, false, final, finally, implements, import, instanceof, interface, native, new, null, package, private, protected, public, static, strictfp, throws, transient, true, void, volatile, length, assert, case, return, super, this, throw},
%keyword3
morekeywords = [2]{catch, do, for, if, else, switch, synchronized, while, try},
%keyword4
morekeywords = [3]{width, height, pixelHight, displayHeight, displayWidth, focused, frameCount, frameRate, key, keyCode, keyPressed, mouseButton, mousePressed, mouseX, mouseY, pixels, pixelWidth, pmouseX, pmouseY},
%keyword5
morekeywords = [4]{Array, ArrayList, Boolean, Byte, BufferedReader, Character, Class, Double, Float, Integer, HashMap, PrintWriter, String, StringBuffer, StringBuilder, Thread, boolean, byte, char, color, double, float, int, long, short, FloatDict, FloatList, IntDict, IntList, JSONArray, JSONObject, PFont, PGraphics, PImage, PShader, PShape, PVector, StringDict, StringList, Table, TableRow, XML},
%function1
morekeywords = [5]{boolean(},
keywordstyle = [1]\color{bluegreen},
keywordstyle = [2]\color{lightgreen},
keywordstyle = [3]\color{magenta},
keywordstyle = [4]\color{orange},
keywordstyle = [5]\color{lightblue},
sensitive = true,
morecomment = [l]{//},
morecomment = [s]{/*}{*/},
morecomment = [s]{/**}{*/},
commentstyle = \color{gray},
morestring = [b]",
morestring = [b]',
stringstyle = \color{purple}
}
\lstset{