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

6
LINES

< > BotCompany Repo | #1014948 // randomLetterImage

JavaX fragment (include)

static RGBImage randomLetterImage(S letter, S fontName, float fontSize) {
  renderText_withLeading = false;
  renderText_bg.set(toColor(randomColor()));
  renderText_fg.set(toColor(randomColor()));
  ret new RGBImage(renderText(fontName, fontSize, letter));
}

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: #1014948
Snippet name: randomLetterImage
Eternal ID of this version: #1014948/1
Text MD5: 0ac0dff8340abffa5e302a210108d93a
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-06 17:56:45
Source code size: 264 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 291 / 323
Referenced in: [show references]