mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-03 16:05:13 +00:00
spelling: interpolation
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
committed by
Jindra Petřík
parent
a76b593697
commit
1bb581c4c1
@@ -3326,9 +3326,9 @@ public class SWFInputStream implements AutoCloseable {
|
||||
MORPHGRADIENT ret = new MORPHGRADIENT();
|
||||
newDumpLevel(name, "MORPHGRADIENT");
|
||||
// Despite of documentation (UI8 1-8), there are two fields
|
||||
// spreadMode and interPolationMode which are same as in GRADIENT
|
||||
// spreadMode and interpolationMode which are same as in GRADIENT
|
||||
ret.spreadMode = (int) readUB(2, "spreadMode");
|
||||
ret.interPolationMode = (int) readUB(2, "interPolationMode");
|
||||
ret.interpolationMode = (int) readUB(2, "interpolationMode");
|
||||
int numGradients = (int) readUB(4, "numGradients");
|
||||
ret.gradientRecords = new MORPHGRADRECORD[numGradients];
|
||||
for (int i = 0; i < numGradients; i++) {
|
||||
@@ -3352,7 +3352,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
MORPHFOCALGRADIENT ret = new MORPHFOCALGRADIENT();
|
||||
newDumpLevel(name, "MORPHFOCALGRADIENT");
|
||||
ret.spreadMode = (int) readUB(2, "spreadMode");
|
||||
ret.interPolationMode = (int) readUB(2, "interPolationMode");
|
||||
ret.interpolationMode = (int) readUB(2, "interpolationMode");
|
||||
int numGradients = (int) readUB(4, "numGradients");
|
||||
ret.gradientRecords = new MORPHGRADRECORD[numGradients];
|
||||
for (int i = 0; i < numGradients; i++) {
|
||||
|
||||
@@ -1818,9 +1818,9 @@ public class SWFOutputStream extends OutputStream {
|
||||
*/
|
||||
public void writeMORPHGRADIENT(MORPHGRADIENT value, int shapeNum) throws IOException {
|
||||
// Despite of documentation (UI8 1-8), there are two fields
|
||||
// spreadMode and interPolationMode which are same as in GRADIENT
|
||||
// spreadMode and interpolationMode which are same as in GRADIENT
|
||||
writeUB(2, value.spreadMode);
|
||||
writeUB(2, value.interPolationMode);
|
||||
writeUB(2, value.interpolationMode);
|
||||
writeUB(4, value.gradientRecords.length);
|
||||
for (int i = 0; i < value.gradientRecords.length; i++) {
|
||||
writeMORPHGRADRECORD(value.gradientRecords[i]);
|
||||
@@ -1839,7 +1839,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
*/
|
||||
public void writeMORPHFOCALGRADIENT(MORPHFOCALGRADIENT value, int shapeNum) throws IOException {
|
||||
writeUB(2, value.spreadMode);
|
||||
writeUB(2, value.interPolationMode);
|
||||
writeUB(2, value.interpolationMode);
|
||||
writeUB(4, value.gradientRecords.length);
|
||||
for (int i = 0; i < value.gradientRecords.length; i++) {
|
||||
writeMORPHGRADRECORD(value.gradientRecords[i]);
|
||||
|
||||
@@ -51,7 +51,7 @@ public class FOCALGRADIENT extends GRADIENT implements Serializable {
|
||||
@Override
|
||||
public MORPHGRADIENT toMorphGradient() {
|
||||
MORPHFOCALGRADIENT morphGradient = new MORPHFOCALGRADIENT();
|
||||
morphGradient.interPolationMode = interpolationMode;
|
||||
morphGradient.interpolationMode = interpolationMode;
|
||||
morphGradient.spreadMode = spreadMode;
|
||||
morphGradient.gradientRecords = new MORPHGRADRECORD[gradientRecords.length];
|
||||
for (int i = 0; i < gradientRecords.length; i++) {
|
||||
@@ -69,7 +69,7 @@ public class FOCALGRADIENT extends GRADIENT implements Serializable {
|
||||
return null;
|
||||
}
|
||||
MORPHFOCALGRADIENT morphGradient = new MORPHFOCALGRADIENT();
|
||||
morphGradient.interPolationMode = interpolationMode;
|
||||
morphGradient.interpolationMode = interpolationMode;
|
||||
morphGradient.spreadMode = spreadMode;
|
||||
morphGradient.gradientRecords = new MORPHGRADRECORD[gradientRecords.length];
|
||||
for (int i = 0; i < gradientRecords.length; i++) {
|
||||
|
||||
@@ -117,7 +117,7 @@ public class GRADIENT implements Serializable {
|
||||
*/
|
||||
public MORPHGRADIENT toMorphGradient() {
|
||||
MORPHGRADIENT morphGradient = new MORPHGRADIENT();
|
||||
morphGradient.interPolationMode = interpolationMode;
|
||||
morphGradient.interpolationMode = interpolationMode;
|
||||
morphGradient.spreadMode = spreadMode;
|
||||
morphGradient.gradientRecords = new MORPHGRADRECORD[gradientRecords.length];
|
||||
for (int i = 0; i < gradientRecords.length; i++) {
|
||||
@@ -141,7 +141,7 @@ public class GRADIENT implements Serializable {
|
||||
} else {
|
||||
morphGradient = new MORPHGRADIENT();
|
||||
}
|
||||
morphGradient.interPolationMode = interpolationMode;
|
||||
morphGradient.interpolationMode = interpolationMode;
|
||||
morphGradient.spreadMode = spreadMode;
|
||||
morphGradient.gradientRecords = new MORPHGRADRECORD[gradientRecords.length];
|
||||
for (int i = 0; i < gradientRecords.length; i++) {
|
||||
|
||||
@@ -42,7 +42,7 @@ public class MORPHFOCALGRADIENT extends MORPHGRADIENT implements Serializable {
|
||||
public GRADIENT getEndGradient() {
|
||||
FOCALGRADIENT ret = new FOCALGRADIENT();
|
||||
ret.spreadMode = spreadMode;
|
||||
ret.interpolationMode = interPolationMode;
|
||||
ret.interpolationMode = interpolationMode;
|
||||
ret.gradientRecords = new GRADRECORD[gradientRecords.length];
|
||||
for (int m = 0; m < gradientRecords.length; m++) {
|
||||
ret.gradientRecords[m] = gradientRecords[m].getEndRecord();
|
||||
@@ -57,7 +57,7 @@ public class MORPHFOCALGRADIENT extends MORPHGRADIENT implements Serializable {
|
||||
public GRADIENT getStartGradient() {
|
||||
FOCALGRADIENT ret = new FOCALGRADIENT();
|
||||
ret.spreadMode = spreadMode;
|
||||
ret.interpolationMode = interPolationMode;
|
||||
ret.interpolationMode = interpolationMode;
|
||||
ret.gradientRecords = new GRADRECORD[gradientRecords.length];
|
||||
for (int m = 0; m < gradientRecords.length; m++) {
|
||||
ret.gradientRecords[m] = gradientRecords[m].getStartRecord();
|
||||
@@ -72,7 +72,7 @@ public class MORPHFOCALGRADIENT extends MORPHGRADIENT implements Serializable {
|
||||
public GRADIENT getGradientAt(int ratio) {
|
||||
FOCALGRADIENT ret = new FOCALGRADIENT();
|
||||
ret.spreadMode = spreadMode;
|
||||
ret.interpolationMode = interPolationMode;
|
||||
ret.interpolationMode = interpolationMode;
|
||||
ret.gradientRecords = new GRADRECORD[gradientRecords.length];
|
||||
for (int m = 0; m < gradientRecords.length; m++) {
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ public class MORPHGRADIENT implements Serializable {
|
||||
@SWFType(value = BasicType.UB, count = 2)
|
||||
@EnumValue(value = INTERPOLATION_RGB_MODE, text = "Normal RGB")
|
||||
@EnumValue(value = INTERPOLATION_LINEAR_RGB_MODE, text = "Linear RGB")
|
||||
public int interPolationMode;
|
||||
public int interpolationMode;
|
||||
|
||||
/**
|
||||
* Gradient records
|
||||
@@ -89,7 +89,7 @@ public class MORPHGRADIENT implements Serializable {
|
||||
public GRADIENT getGradientAt(int ratio) {
|
||||
GRADIENT ret = new GRADIENT();
|
||||
ret.spreadMode = spreadMode;
|
||||
ret.interpolationMode = interPolationMode;
|
||||
ret.interpolationMode = interpolationMode;
|
||||
ret.gradientRecords = new GRADRECORD[gradientRecords.length];
|
||||
for (int m = 0; m < gradientRecords.length; m++) {
|
||||
|
||||
@@ -108,7 +108,7 @@ public class MORPHGRADIENT implements Serializable {
|
||||
public GRADIENT getStartGradient() {
|
||||
GRADIENT ret = new GRADIENT();
|
||||
ret.spreadMode = spreadMode;
|
||||
ret.interpolationMode = interPolationMode;
|
||||
ret.interpolationMode = interpolationMode;
|
||||
ret.gradientRecords = new GRADRECORD[gradientRecords.length];
|
||||
for (int m = 0; m < gradientRecords.length; m++) {
|
||||
ret.gradientRecords[m] = gradientRecords[m].getStartRecord();
|
||||
@@ -123,7 +123,7 @@ public class MORPHGRADIENT implements Serializable {
|
||||
public GRADIENT getEndGradient() {
|
||||
GRADIENT ret = new GRADIENT();
|
||||
ret.spreadMode = spreadMode;
|
||||
ret.interpolationMode = interPolationMode;
|
||||
ret.interpolationMode = interpolationMode;
|
||||
ret.gradientRecords = new GRADRECORD[gradientRecords.length];
|
||||
for (int m = 0; m < gradientRecords.length; m++) {
|
||||
ret.gradientRecords[m] = gradientRecords[m].getEndRecord();
|
||||
|
||||
Reference in New Issue
Block a user