Rotate

Rotate character or object

Rotates a pixel art image based on the provided parameters. Called "Rotate" in the plugin.

Supported image sizes:

  • 16x16
  • 32x32
  • 64x64
  • 128x128

Supported features:

  • Init image
  • Forced palette

Using the Python client:

import pixellab

client = pixellab.Client(secret="YOUR_API_TOKEN")

response = client.rotate(
    from_view="side",
    to_view="side",
    from_direction="south",
    to_direction="east",
    image_size=dict(width=16, height=16),
    from_image=image_of_subject_facing_south,
)
response.image.pil_image()
post/rotate

Request body

image_guidance_scalenumber

How closely to follow the reference image

view_changeinteger nullable

How many degrees to tilt the subject

direction_changeinteger nullable

How many degrees to rotate the subject

from_view'side' | 'low top-down' | 'high top-down'
to_view'side' | 'low top-down' | 'high top-down'
from_direction'north' | 'north-east' | 'east' | 'south-east' | 'south' | 'south-west' | 'west' | 'north-west'
to_direction'north' | 'north-east' | 'east' | 'south-east' | 'south' | 'south-west' | 'west' | 'north-west'
isometricboolean

Generate in isometric view

oblique_projectionboolean

Generate in oblique projection

init_image_strengthinteger

Strength of the initial image influence

seedinteger nullable

Seed decides the starting noise

Example request

{
  "description": "cute dragon",
  "from_direction": "south",
  "from_view": "side",
  "image_guidance_scale": 7.5,
  "image_size": {
    "height": 128,
    "width": 128
  },
  "to_direction": "east",
  "to_view": "side"
}

Response

Successfully generated image

Changes