static int randomLineWithColor_minLineWidth = 2; static int randomLineWithColor_maxLineWidth = 20; static double randomLineWithColor_maxThickness = 0.1; static LineWithColor randomLineWithColor(int w, int h) { LineWithColor l = LineWithColor(randomPoint(w, h), randomPoint(w, h), randomColor()); l.width = random_incl(randomLineWithColor_minLineWidth, randomLineWithColor_maxLineWidth); limitLineThickness(l, randomLineWithColor_maxThickness, randomLineWithColor_minLineWidth); ret l; }
Began life as a copy of #1014956
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1015020 |
Snippet name: | randomLineWithColor |
Eternal ID of this version: | #1015020/10 |
Text MD5: | 3c24b71800b266b8011d236ae5e0d70e |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-05-07 21:41:38 |
Source code size: | 506 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 391 / 429 |
Version history: | 9 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |