*/}}

ourpaint.h 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591
  1. /*
  2. * Our Paint: A light weight GPU powered painting program.
  3. * Copyright (C) 2022-2023 Wu Yiming
  4. *
  5. * This program is free software: you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation, either version 3 of the License, or
  8. * (at your option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. #include "la_5.h"
  19. #ifndef OURPAINT_GIT_BRANCH
  20. #define OURPAINT_GIT_BRANCH "Release 1"
  21. #endif
  22. // No need to show hash when not compiled from git repo.
  23. //#ifndef OURPAINT_GIT_HASH
  24. //#define OURPAINT_GIT_HASH "?"
  25. //#endif
  26. extern unsigned char DATA_SPLASH[];
  27. extern unsigned char DATA_SPLASH_HIGHDPI[];
  28. #ifdef __cplusplus
  29. extern "C" {
  30. #endif
  31. extern const char OUR_SHADER_VERSION_430[];
  32. extern const char OUR_SHADER_VERSION_320ES[];
  33. extern const char OUR_CANVAS_SHADER[];
  34. extern const char OUR_COMPOSITION_SHADER[];
  35. extern const char OUR_SHADER_COMMON[];
  36. extern const char OUR_MIME[];
  37. extern const char OUR_THUMBNAILER[];
  38. extern const char OUR_DESKTOP[];
  39. extern const char OUR_PIGMENT_TEXTURE_MIX_SHADER[];
  40. extern const char OUR_PIGMENT_TEXTURE_DISPLAY_SHADER[];
  41. extern const char OUR_PIGMENT_COMMON[];
  42. #ifdef __cplusplus
  43. } // extern "C"
  44. #endif
  45. #define OUR_AT_CROP_CENTER 0
  46. #define OUR_AT_CROP_L 1
  47. #define OUR_AT_CROP_R 2
  48. #define OUR_AT_CROP_U 3
  49. #define OUR_AT_CROP_B 4
  50. #define OUR_AT_CROP_UL 5
  51. #define OUR_AT_CROP_UR 6
  52. #define OUR_AT_CROP_BL 7
  53. #define OUR_AT_CROP_BR 8
  54. #define OUR_VERSION_MAJOR 0
  55. #define OUR_VERSION_MINOR 4
  56. #define OUR_VERSION_SUB 0
  57. #define OUR_PAINT_NAME_STRING "Our Paint v0.4"
  58. #define OUR_SIGNAL_PICK 1
  59. #define OUR_SIGNAL_MOVE 2
  60. #define OUR_SIGNAL_PICK 3
  61. #define OUR_SIGNAL_TOGGLE_ERASING 4
  62. #define OUR_SIGNAL_ZOOM_IN 5
  63. #define OUR_SIGNAL_ZOOM_OUT 6
  64. #define OUR_SIGNAL_BRUSH_BIGGER 7
  65. #define OUR_SIGNAL_BRUSH_SMALLER 8
  66. #define OUR_SIGNAL_TOGGLE_SKETCH 9
  67. #define OUR_SIGNAL_SELECT_BRUSH_NUMBER_0 10
  68. #define OUR_SIGNAL_SELECT_BRUSH_NUMBER_1 11
  69. #define OUR_SIGNAL_SELECT_BRUSH_NUMBER_2 12
  70. #define OUR_SIGNAL_SELECT_BRUSH_NUMBER_3 13
  71. #define OUR_SIGNAL_SELECT_BRUSH_NUMBER_4 14
  72. #define OUR_SIGNAL_SELECT_BRUSH_NUMBER_5 15
  73. #define OUR_SIGNAL_SELECT_BRUSH_NUMBER_6 16
  74. #define OUR_SIGNAL_SELECT_BRUSH_NUMBER_7 17
  75. #define OUR_SIGNAL_SELECT_BRUSH_NUMBER_8 18
  76. #define OUR_SIGNAL_SELECT_BRUSH_NUMBER_9 19
  77. #define OUR_SIGNAL_SELECT_BRUSH_FREE 20
  78. #define OUR_SIGNAL_ADJUST 21
  79. extern laWidget* OUR_WIDGET_PIGMENT;
  80. extern laUiType* _OUR_UI_PIGMENT;
  81. #define OURU Our->u
  82. STRUCTURE(OurCanvasDraw){
  83. laCanvasExtra Base;
  84. tnsOffscreen *OffScrSave;
  85. int HideBrushCircle;
  86. int AtCrop;
  87. real CanvasLastX,CanvasLastY;
  88. real CanvasDownX,CanvasDownY;
  89. real PointerX,PointerY,DownTilt;
  90. real LastPressure;
  91. real LastTilt[2];
  92. real LastTwist;
  93. real LastSize;
  94. int LastNumber;
  95. int MovedX,MovedY;
  96. };
  97. #define OUR_DPC (600*0.3937007874)
  98. #define OUR_SPECTRAL_SLICES 15
  99. #define OUR_MIXING_SPEED 0.05f
  100. #define OUR_TILE_W 1024
  101. #define OUR_TILES_PER_ROW 100
  102. #define OUR_TILE_CTR (OUR_TILES_PER_ROW/2)
  103. #define OUR_TILE_SEAM 12
  104. #define OUR_TILE_W_USE (OUR_TILE_W-OUR_TILE_SEAM*2)
  105. #define OUR_BRUSH_ACTUAL_SIZE(b) (Our->BrushNumber?Our->BrushBaseSize*pow(2,(real)Our->BrushNumber/2+(b?b->SizeOffset:0)):pow(2,Our->BrushSize+(b?b->SizeOffset:0)))
  106. #ifdef LA_USE_GLES
  107. #define OUR_PIX_COMPACT uint8_t
  108. #else
  109. #define OUR_PIX_COMPACT uint16_t
  110. #endif
  111. #define OUR_PROOF_PRECISION LA_LUT_PRECISION
  112. #define OUR_PROOF_VAL (OUR_PROOF_PRECISION-1)
  113. #define OUR_PROOF_PIXCOUNT LA_LUT_PIXCOUNT
  114. STRUCTURE(OurTexTile){
  115. tnsTexture* Texture;
  116. OUR_PIX_COMPACT* Data;
  117. int l,r,u,b;
  118. OUR_PIX_COMPACT* FullData;
  119. OUR_PIX_COMPACT* CopyBuffer;
  120. int cl,cr,cu,cb;
  121. };
  122. #define OUR_BLEND_NORMAL 0
  123. #define OUR_BLEND_ADD 1
  124. typedef struct OurLayerImageSegmented{
  125. uint32_t Sizes[32];
  126. int H[32];
  127. int Count; int Width,Height;
  128. }OurLayerImageSegmented;
  129. STRUCTURE(OurLayer){
  130. laListItem Item;
  131. laSafeString* Name;
  132. int OffsetX,OffsetY;
  133. real Transparency;
  134. int Lock;
  135. int Hide;
  136. int BlendMode;
  137. int AsSketch;
  138. OurTexTile** TexTiles[OUR_TILES_PER_ROW];
  139. OurLayerImageSegmented ReadSegmented;
  140. };
  141. STRUCTURE(OurLayerWrite){
  142. unsigned char* data;
  143. size_t NextData, MaxData;
  144. };
  145. STRUCTURE(OurLayerRead){
  146. unsigned char* data;
  147. size_t NextData;
  148. };
  149. STRUCTURE(OurBrushSettingsNode){
  150. laBaseNode Base;
  151. laNodeOutSocket* CanvasScale; real rCanvasScale;
  152. laNodeOutSocket* Size; real rSize;
  153. laNodeOutSocket* Transparency; real rTransparency;
  154. laNodeOutSocket* Hardness; real rHardness;
  155. laNodeOutSocket* Smudge; real rSmudge;
  156. laNodeOutSocket* DabsPerSize; real rDabsPerSize;
  157. laNodeOutSocket* SmudgeLength; real rSmudgeLength;
  158. laNodeOutSocket* Slender; real rSlender;
  159. laNodeOutSocket* Angle; real rAngle;
  160. laNodeOutSocket* Gunkyness; real rGunkyness;
  161. laNodeOutSocket* Force; real rForce;
  162. laNodeOutSocket* Color;
  163. laNodeOutSocket* Iteration; int rIteration;
  164. laNodeOutSocket* Custom1; real rCustom1;
  165. laNodeOutSocket* Custom2; real rCustom2;
  166. };
  167. STRUCTURE(OurBrushOutputsNode){
  168. laBaseNode Base;
  169. laNodeInSocket* Offset;
  170. laNodeInSocket* Size;
  171. laNodeInSocket* Transparency;
  172. laNodeInSocket* Hardness;
  173. laNodeInSocket* Smudge;
  174. laNodeInSocket* DabsPerSize;
  175. laNodeInSocket* SmudgeLength;
  176. laNodeInSocket* Slender;
  177. laNodeInSocket* Angle;
  178. laNodeInSocket* Color;
  179. laNodeInSocket* Gunkyness;
  180. laNodeInSocket* Force;
  181. laNodeInSocket* Repeats;
  182. laNodeInSocket* Discard;
  183. };
  184. STRUCTURE(OurBrushDeviceNode){
  185. laBaseNode Base;
  186. laNodeOutSocket* Pressure; real rPressure;
  187. laNodeOutSocket* Position; real rPosition[2];
  188. laNodeOutSocket* Tilt; real rTilt[2];
  189. laNodeOutSocket* Twist; real rTwist;
  190. laNodeOutSocket* IsEraser; int rIsEraser;
  191. laNodeOutSocket* Speed; real rSpeed;
  192. laNodeOutSocket* Angle; real rAngle;
  193. laNodeOutSocket* Length; real rLength;
  194. laNodeOutSocket* LengthAccum; real rLengthAccum;
  195. };
  196. STRUCTURE(OurBrush){
  197. laListItem Item;
  198. laSafeString* Name;
  199. real SizeOffset;
  200. real DabsPerSize;
  201. real Hardness;
  202. real Transparency;
  203. real Smudge;
  204. real SmudgeResampleLength; real SmudgeAccum; int SmudgeRestart; real BrushRemainingDist;
  205. real Slender;
  206. real Angle;
  207. real Force, Gunkyness;
  208. real Smoothness;
  209. real MaxStrokeLength;
  210. real Custom1,Custom2; laSafeString *Custom1Name,*Custom2Name;
  211. int Iteration;
  212. int PressureSize,PressureHardness,PressureTransparency,PressureSmudge,PressureForce,TwistAngle; // the simple way
  213. int Binding,DefaultAsEraser;
  214. int ShowInPages;
  215. real VisualOffset;
  216. real VisualOffsetAngle;
  217. int16_t OffsetFollowPenTilt;
  218. int16_t UseNodes; // the flexible way
  219. laRackPage* Rack;
  220. real LastX,LastY,LastAngle;
  221. real EvalColor[3];
  222. real EvalOffset[2];
  223. real EvalSize;
  224. real EvalDabsPerSize;
  225. real EvalHardness;
  226. real EvalTransparency;
  227. real EvalSmudge;
  228. real EvalSmudgeLength;
  229. real EvalSlender;
  230. real EvalAngle;
  231. real EvalForce, EvalGunkyness;
  232. real EvalSpeed;
  233. real EvalStrokeLength;
  234. real EvalStrokeLengthAccum;
  235. real EvalPressure;
  236. real EvalPosition[2];
  237. real EvalTilt[2];
  238. real EvalTwist;
  239. real EvalStrokeAngle;
  240. int EvalIsEraser;
  241. int EvalRepeats;
  242. int EvalDiscard;
  243. };
  244. STRUCTURE(OurDab){
  245. float X,Y;
  246. float Size;
  247. float Hardness;
  248. float Smudge; int ResampleSmudge;
  249. float Color[4];
  250. float Slender;
  251. float Angle;
  252. float Direction[2];
  253. float Force;
  254. float Gunkyness;
  255. float Recentness;
  256. };
  257. STRUCTURE(OurPigmentData){
  258. real Reflectance[16];
  259. real Absorption[16];
  260. real PreviewColor[3][4];
  261. };
  262. STRUCTURE(OurBrushData140){
  263. float Reflectance[64];
  264. float Absorption[64];
  265. };
  266. STRUCTURE(OurPigmentData140){
  267. float Reflectance[64];
  268. float Absorption[64];
  269. float PaperReflectance[64];
  270. float PaperAbsorption[64];
  271. };
  272. STRUCTURE(OurPigment){
  273. laListItem Item;
  274. laSafeString* Name;
  275. OurPigmentData Pigment;
  276. };
  277. STRUCTURE(OurLight){
  278. laListItem Item;
  279. laSafeString* Name;
  280. OurPigmentData Emission;
  281. };
  282. STRUCTURE(OurCanvasSurface){
  283. laListItem Item;
  284. laSafeString* Name;
  285. OurPigmentData Reflectance;
  286. };
  287. NEED_STRUCTURE(OurColorPallette);
  288. STRUCTURE(OurColorItem){
  289. laListItem Item;
  290. tnsVector3d Color;
  291. OurColorPallette* Parent;
  292. };
  293. STRUCTURE(OurColorPallette){
  294. laListItem Item;
  295. laSafeString* Name;
  296. laListHandle Colors;
  297. };
  298. STRUCTURE(OurUndoTile){
  299. laListItem Item;
  300. int col,row;
  301. OUR_PIX_COMPACT* CopyData;
  302. int l,r,u,b;
  303. };
  304. STRUCTURE(OurUndo){
  305. OurLayer* Layer;
  306. laListHandle Tiles;
  307. };
  308. STRUCTURE(OurMoveUndo){
  309. OurLayer* Layer;
  310. int dx,dy;
  311. };
  312. #define OUR_TOOL_PAINT 0
  313. #define OUR_TOOL_CROP 1
  314. #define OUR_TOOL_MOVE 2
  315. #define OUR_PNG_READ_INPUT_FLAT 0
  316. #define OUR_PNG_READ_INPUT_ICC 1
  317. #define OUR_PNG_READ_INPUT_SRGB 2
  318. #define OUR_PNG_READ_INPUT_LINEAR_SRGB 3
  319. #define OUR_PNG_READ_INPUT_CLAY 4
  320. #define OUR_PNG_READ_INPUT_LINEAR_CLAY 5
  321. #define OUR_PNG_READ_INPUT_D65_P3 6
  322. #define OUR_PNG_READ_INPUT_LINEAR_D65_P3 7
  323. #define OUR_PNG_READ_OUTPUT_CANVAS 0
  324. #define OUR_PNG_READ_OUTPUT_LINEAR_SRGB OUR_PNG_READ_INPUT_LINEAR_SRGB
  325. #define OUR_PNG_READ_OUTPUT_LINEAR_CLAY OUR_PNG_READ_INPUT_LINEAR_CLAY
  326. #define OUR_PNG_READ_OUTPUT_LINEAR_D65_P3 OUR_PNG_READ_INPUT_LINEAR_D65_P3
  327. #define OUR_CANVAS_INTERPRETATION_SRGB 0
  328. #define OUR_CANVAS_INTERPRETATION_CLAY 1
  329. #define OUR_CANVAS_INTERPRETATION_D65_P3 2
  330. #define OUR_EXPORT_BIT_DEPTH_8 0
  331. #define OUR_EXPORT_BIT_DEPTH_16 1
  332. #define OUR_EXPORT_COLOR_MODE_SRGB 0
  333. #define OUR_EXPORT_COLOR_MODE_CLAY 1
  334. #define OUR_EXPORT_COLOR_MODE_FLAT 2
  335. #define OUR_EXPORT_COLOR_MODE_D65_P3 3
  336. #define OUR_BRUSH_PAGE_LIST 128
  337. STRUCTURE(OurPNGReadExtra){
  338. int Confirming;
  339. laSafeString* FilePath;
  340. laSafeString* iccName;
  341. int HassRGB;
  342. int HasProfile;
  343. int InputMode;
  344. int OutputMode;
  345. int Offsets[2];
  346. };
  347. STRUCTURE(OurPNGWriteExtra){
  348. int Confirming;
  349. laSafeString* FilePath;
  350. int BitDepth;
  351. int ColorProfile;
  352. int Transparent;
  353. };
  354. STRUCTURE(OurThreadExportPNGData){
  355. uint32_t* r_sizes;
  356. void** pointers;
  357. int i;
  358. int segy,h;
  359. int fail;
  360. };
  361. NEED_STRUCTURE(OurThreadImportPNGDataMain);
  362. STRUCTURE(OurThreadImportPNGData){
  363. OurThreadImportPNGDataMain* main;
  364. void* data;
  365. OurLayer* l;
  366. int starty;
  367. };
  368. STRUCTURE(OurThreadImportPNGDataMain){
  369. OurThreadImportPNGData* data;
  370. int next,max;
  371. SYSLOCK lock;
  372. };
  373. STRUCTURE(OurUsePigment){
  374. laListItem Item;
  375. OurPigment* pigment;
  376. };
  377. STRUCTURE(BrushUniforms){
  378. GLint uCanvasType;
  379. GLint uCanvasRandom;
  380. GLint uCanvasFactor;
  381. GLint uImageOffset;
  382. GLint uBrushCorner;
  383. GLint uBrushCenter;
  384. GLint uBrushSize;
  385. GLint uBrushHardness;
  386. GLint uBrushSmudge;
  387. GLint uBrushRecentness;
  388. GLint uBrushColor;
  389. GLint uBrushSlender;
  390. GLint uBrushAngle;
  391. GLint uBrushDirection;
  392. GLint uBrushForce;
  393. GLint uBrushGunkyness;
  394. GLint uBrushRoutineSelection;
  395. GLint uBrushRoutineSelectionES;
  396. GLint uMixRoutineSelection;
  397. GLint uMixRoutineSelectionES;
  398. GLint uBrushErasing;
  399. GLint uBrushMix;
  400. GLint RoutineDoDabs;
  401. GLint RoutineDoSample;
  402. GLint RoutineDoMixNormal;
  403. GLint RoutineDoMixSpectral;
  404. GLint uBlendMode;
  405. GLint uAlphaTop;
  406. GLint uAlphaBottom;
  407. };
  408. STRUCTURE(OurPaint){
  409. real pad;
  410. laListHandle CanvasSaverDummyList;
  411. laProp* CanvasSaverDummyProp;
  412. laListHandle BadEvents;
  413. tnsImage* SplashImage;
  414. tnsImage* SplashImageHigh;
  415. laListHandle Pallettes;
  416. OurColorPallette* CurrentPallette;
  417. laListHandle Layers;
  418. OurLayer* CurrentLayer;
  419. laListHandle Brushes;
  420. OurBrush* CurrentBrush;
  421. laListHandle Pigments;
  422. OurPigment* CurrentPigment;
  423. laListHandle Lights;
  424. laListHandle CanvasSurfaces;
  425. real SaveBrushSize,SaveEraserSize;
  426. OurDab* Dabs; int NextDab,MaxDab;
  427. float LastBrushCenter[2];
  428. int CanvasVersion;
  429. laSafeString* Notes;
  430. real Smoothness,Hardness;
  431. real LastX, LastY;
  432. real CurrentScale;
  433. real DefaultScale;
  434. int BrushNumber;
  435. real BrushBaseSize;
  436. real BrushSize;
  437. int BrushPage;
  438. int Tool,ActiveTool,Erasing,EventErasing,BrushMix;
  439. int LockBackground;
  440. int BackgroundType;
  441. int BackgroundRandom;
  442. real BackgroundFactor;
  443. int PenID,EraserID;
  444. int X,Y,W,H; //border
  445. real BorderFadeWidth;
  446. int ColorInterpretation;
  447. int ShowBorder,UseBorder;
  448. int ShowTiles;
  449. int BrushCircleTiltMode;
  450. int AllowNonPressure,PaintProcessedEvents;
  451. int BadEventsLimit,BadEventCount,BadEventsGiveUp;
  452. int EnableBrushCircle,ShowBrushName,ShowBrushNumber;
  453. int EventHasTwist; real EventTwistAngle; real EventTiltOrientation;
  454. int DefaultBitDepth;
  455. int DefaultColorProfile;
  456. int PaintUndoLimit;
  457. int SpectralMode;
  458. int PigmentMode;
  459. int BrushNumbersOnHeader;
  460. int MixModeOnHeader;
  461. int ToolsOnHeader;
  462. int UndoOnHeader;
  463. int SketchMode;
  464. int SegmentedWrite;
  465. tnsTexture* SmudgeTexture;
  466. GLuint CanvasShader; GLuint CanvasProgram;
  467. GLuint CanvasPigmentShader; GLuint CanvasPigmentProgram;
  468. GLuint CompositionShader; GLuint CompositionProgram;
  469. GLuint LayerShader; GLuint LayerProgram;
  470. GLuint DisplayShader; GLuint DisplayProgram;
  471. GLuint PigmentCompositionShader; tnsShader* PigmentCompositionProgramT;
  472. GLuint PigmentDisplayShader; tnsShader* PigmentDisplayProgramT;
  473. GLuint uPigmentDisplaySize;
  474. GLint uboBrushPigment,uboBrushPigmentLocation;
  475. GLint uboCanvasPigment,uboCanvasPigmentLocation;
  476. BrushUniforms *u,uRGBA,uPigment;
  477. OurCanvasSurface CanvasSurface;
  478. OurLight CanvasLight;
  479. OurPigmentData PickedPigment;
  480. OurPigmentData MixedPigment;
  481. laListHandle UsePigments;
  482. real CurrentColor[3];
  483. real BackgroundColor[3];
  484. uint16_t BColorU16[4];
  485. uint8_t BColorU8[4];
  486. real BorderAlpha;
  487. int ShowStripes;
  488. int ShowGrid;
  489. int ShowRef;
  490. int RefSize;
  491. int RefCategory;
  492. int RefOrientation;
  493. int RefCutHalf;
  494. real RefMargins[3],RefPaddings[2];
  495. int RefBiases[2];
  496. real RefAlpha;
  497. real xmin,xmax,ymin,ymax; // stroke bbox for undo region
  498. int ResetBrush;
  499. int SaveFailed;
  500. int FileRegistered;
  501. uint16_t *ImageBuffer;
  502. int ImageW,ImageH,ImageX,ImageY,LoadX,LoadY,TempLoadX,TempLoadY;
  503. uint8_t* ThumbnailBuffer;
  504. void* icc_LinearsRGB; int iccsize_LinearsRGB;
  505. void* icc_LinearClay; int iccsize_LinearClay;
  506. void* icc_LinearD65P3; int iccsize_LinearD65P3;
  507. void* icc_sRGB; int iccsize_sRGB;
  508. void* icc_Clay; int iccsize_Clay;
  509. void* icc_D65P3; int iccsize_D65P3;
  510. void* ProofTablesRGB, *ProofTableClay, *ProofTableD65;
  511. };
  512. int ourProcessInitArgs(int argc, char* argv[]);
  513. int ourInit();
  514. void ourFinalize();
  515. void ourRegisterNodes();
  516. int ourRebuildBrushEval();
  517. int ourEvalBrush();
  518. void ourMakeTranslations_zh_hans();
  519. void ourMakeTranslations_es_ES();
  520. void our_EnableSplashPanel();