Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- p = peripheral.wrap("right") -- glasses bridge
- p.getStringWidth("Hello") -- returns the width of the text
- ids = p.getAllIds() -- get a table of ids
- drawable = p.getById(drawableId) -- get an item by its ID
- p.clear() -- clear the screen
- p.getGuid() -- get the bridge guid
- p.resetGuid() -- reset the bridge guid
- p.getAllUsers() -- get a table of connected users
- gradientBox = p.addGradientBox(x, y, width, height, color, opacity, color2, opacity2, gradientDirection) -- gradient direction should be 1 or 2
- box = p.addBox(x, y, width, height, color, opacity)
- box.setX(x)
- box.getX()
- box.setWidth(width)
- box.getWidth()
- box.setY(y)
- box.getY()
- box.setHeight(height)
- box.getHeight()
- box.getGradient()
- box.setGradient(mode)
- box.delete()
- box.setColor(color)
- box.getColor()
- box.setOpacity(opacity)
- box.getOpacity()
- box.setOpacity2(opacity2)
- box.getOpacity2()
- box.getZIndex()
- box.setZIndex(zindex)
- box.setColor2(color2)
- box.getColor2()
- text = p.addText(x, y, text, color)
- text.setX(x)
- text.getX()
- text.setY(y)
- text.getY()
- text.delete()
- text.setColor(color)
- text.getColor()
- text.getZIndex()
- text.setZIndex(zindex)
- text.setText(txt)
- text.getText()
- text.setScale(scale)
- text.getScale()
- text.getWidth()
Add Comment
Please, Sign In to add comment