Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

6
LINES

< > BotCompany Repo | #1014954 // varyBoxWithColor

JavaX fragment (include)

1  
static void varyBoxWithColor(BoxWithColor l, int w, int h) {
2  
  int i = random(3);
3  
  if (i == 0) l.a = varyPoint(l.a, w, h);
4  
  else if (i == 1) l.b = varyPoint(l.b, w, h);
5  
  else l.color = varyColor(l.color);
6  
}

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: #1014954
Snippet name: varyBoxWithColor
Eternal ID of this version: #1014954/2
Text MD5: 673e3f1009708c66846d58229211db5c
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-06 18:07:53
Source code size: 214 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 372 / 405
Version history: 1 change(s)
Referenced in: [show references]